Reference
The 73 star systems within 20 light-years, with names in English and Japanese, place, distance, companions and the source of each value
import { … } from "@johnmorrisdotca/hoshi-stars/near-stars";
8.9 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
NEAR_STAR_LIMIT_LY | constant | The distance this table goes to, in light-years: a system whose primary is nearer than this, with its distance known to 10% or better, is in. |
NearStar | type | One star system within 20 light-years: a single star or a group, at a place on the sky, with its distance and where each value comes from. |
nearStarByName | function | A system by a name, ignoring case and extra spaces: its name (Proxima Centauri, Alpha Centauri), its Japanese name, its designation or any name of its stars or the sources (Rigil Kentaurus, Sirius B, GJ 876). |
NearStarDistanceSource | type | Where the distance comes from: "GCTP" a measured parallax with an error, "BSC" the Bright Star Catalogue's own trigonometric parallax, or "dynamical" its parallax from the orbit of a binary. |
NearStarFlags | type | What to be careful about for one system. |
NearStarMember | type | One star of a system. |
nearStars | function | The star systems within 20 light-years, nearest first: 73 of them, from Alpha Centauri at 4.3 to a faint red dwarf at 19.8. |
NearStarSource | type | Where a value comes from: "BSC" the Yale Bright Star Catalogue, "GCTP" the Yale General Catalogue of Trigonometric Stellar Parallaxes, "2MASS" the Two Micron All Sky Survey, or "typed" a published value typed into the package (the companions that neither Yale table holds). |
NearStarSources | type | Where each value of a system comes from. |