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 Messier objects

DeepSkyOptionstype

The options of deepSky: all optional, and together they narrow the list.

Import it

import type { DeepSkyOptions } from "@johnmorrisdotca/hoshi-stars/deep-sky";

Also exported from: @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic

Definition

interface DeepSkyOptions {
    catalogue?: (typeof DEEP_SKY_CATALOGUES)[number];
    magnitude?: number;
    type?: DeepSkyType;
}

Members

NameTypeDescription
catalogue (optional)"messier" | "ngc" | "ic" | undefined

Only objects that have a number in that catalogue: "messier", "ngc" or "ic".

magnitude (optional)number | undefined

Only objects as bright as this magnitude (an object of exactly that magnitude is in). An object with no magnitude is never in.

type (optional)"other" | "galaxy" | "globular cluster" | "open cluster" | "nebula" | "planetary nebula" | "supernova remnant" | undefined

Only objects of that kind.

Examples

import { deepSky, type DeepSkyOptions } from "@johnmorrisdotca/hoshi-stars/deep-sky";

const options: DeepSkyOptions = { type: "globular cluster", magnitude: 6.5 };
console.log(deepSky(options).map((o) => o.id));
[
  'M2',  'M3',
  'M4',  'M5',
  'M13', 'M15',
  'M22', 'M92'
]

What it prints (run when this page was built)

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