Reference · Rockets, variants, parts and the fit check
propellantOffunction
The record of what an engine burns, found by the engine's name in a variant's engine text, or null when no page read here names it. A rocket's rocket makes "solid motor" mean its own.
Import it
import { propellantOf } from "@johnmorrisdotca/uchusen-rockets";
Definition
function propellantOf(rocket: string, engineText: string | null | undefined): EnginePropellant | null
Parameters
| Name | Type | Description |
|---|---|---|
rocket | string | A rocket's id. |
engineText | string | null | undefined | The engine text of a part, as a variant's data words it ("9 Merlin 1D"), or null or undefined. |
Returns
EnginePropellant | null
What that engine burns, or null.
Examples
import { propellantOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(propellantOf("falcon-9", "9 Merlin 1D")?.propellant.value, propellantOf("starship", "3 sea-level and 3 vacuum"));LOX / RP-1 nullWhat it prints (run when this page was built)