Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · The 73 star systems within 20 light-years, with names in English and Japanese, place, distance, companions and the source of each value

nearStarByNamefunction

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).

Import it

import { nearStarByName } from "@johnmorrisdotca/hoshi-stars/near-stars";

Definition

function nearStarByName(text: string): NearStar | undefined

Parameters

NameTypeDescription
textstring

The name.

Returns

NearStar | undefined

The system, or undefined.

Examples

import { nearStarByName } from "@johnmorrisdotca/hoshi-stars/near-stars";

console.log(nearStarByName("Sirius B")?.name, nearStarByName("barnard's star")?.lightYears.toFixed(1));
Sirius 6.0

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.