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 data door: hand the package your own stars or objects as a source with its own licence and credit, and see whose data is on the screen

ownCreditfunction

The credit of one of the package's own sources, for the part of a page the door does not draw: the bright stars of the Yale catalogue are drawn from the main entry, so a page puts ownCredit("yale-bsc", count) first in its credit line.

Import it

import { ownCredit } from "@johnmorrisdotca/hoshi-stars/door";

Definition

function ownCredit(id: string, used: number): Credit

Parameters

NameTypeDescription
idstring

yale-bsc, ucac4 or wikidata-deep-sky.

usednumber

How many marks were drawn from it.

Returns

Credit

The credit, marked as the package's own.

Examples

import { creditLine, ownCredit } from "@johnmorrisdotca/hoshi-stars/door";

console.log(creditLine([ownCredit("yale-bsc", 5080)], "en"));
Bright stars: Yale Bright Star Catalogue, D. Hoffleit and W. H. Warren Jr. (1991), via NASA HEASARC (Public domain).

What it prints (run when this page was built)

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