Reference · Rockets, variants, parts and the fit check
rocketToParamsfunction
The options as a query for embed.html.
Import it
import { rocketToParams } from "@johnmorrisdotca/uchusen-rockets";
Definition
function rocketToParams(options: RocketOptions): URLSearchParams
Parameters
| Name | Type | Description |
|---|---|---|
options | RocketOptions | The choices to write. |
Returns
URLSearchParams
A query for embed.html, with one entry for each choice made.
Examples
import { rocketToParams } from "@johnmorrisdotca/uchusen-rockets";
console.log(rocketToParams({ rocket: "falcon-9", show: "apart" }).toString());rocket=falcon-9&show=apartWhat it prints (run when this page was built)