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 host stars of confirmed exoplanets worth a visit: place, distance, and each planet's name and orbital period

exoplanetHostByNamefunction

A host by a name, ignoring case and extra spaces: its name, its Japanese name, the Archive's name for it (Proxima Cen) or the name of one of its planets (TRAPPIST-1 e).

Import it

import { exoplanetHostByName } from "@johnmorrisdotca/hoshi-stars/exoplanet-hosts";

Definition

function exoplanetHostByName(text: string): ExoplanetHost | undefined

Parameters

NameTypeDescription
textstring

The name.

Returns

ExoplanetHost | undefined

The host, or undefined.

Examples

import { exoplanetHostByName } from "@johnmorrisdotca/hoshi-stars/exoplanet-hosts";

console.log(exoplanetHostByName("trappist-1 e")?.name, exoplanetHostByName("Proxima Cen b")?.planetCount);
TRAPPIST-1 2

What it prints (run when this page was built)

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