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

ObjectSourcetype

A source of deep-sky objects: a list that fits in memory (at most 200,000 records), read once.

Import it

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

Definition

type ObjectSource = RecordSource<DeepSkyObject>;

Members

NameTypeDescription
kind"records"
infoSourceInfo
records(signal: AbortSignal): DeepSkyObject[] | Promise<DeepSkyObject[]>

Examples

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

const count = async (source: ObjectSource): Promise<number> => (await source.records(new AbortController().signal)).length;
console.log(typeof count);
function

What it prints (run when this page was built)

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