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 · Nearby stars: Proxima Centauri, Barnard's Star and about 5,600 more, with distance and error

nearbyStarByNamefunction

A nearby star by a name, ignoring case: its common name (Proxima Centauri), a name the catalogue gives it (G 158-027), its designation (33 Psc), GJ 551 or Gliese 551, HD 95735, GCTP 2576 or its 2MASS designation (with or without 2MASS J).

Import it

import { nearbyStarByName } from "@johnmorrisdotca/hoshi-stars/nearby";

Definition

function nearbyStarByName(text: string): NearbyStar | undefined

Parameters

NameTypeDescription
textstring

The name.

Returns

NearbyStar | undefined

The star, or undefined.

Examples

import { nearbyStarByName } from "@johnmorrisdotca/hoshi-stars/nearby";

console.log(nearbyStarByName("Barnard's Star")?.gliese, nearbyStarByName("HD 95735")?.name);
GJ 699 Lalande 21185

What it prints (run when this page was built)

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