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

deepSkyfunction

The Messier objects that meet the options, in Messier order. For the NGC and IC objects too, use deepSky from @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic.

Import it

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

Definition

function deepSky(options?: DeepSkyOptions): DeepSkyObject[]

Parameters

NameTypeDescription
options (optional)DeepSkyOptions

catalogue: only objects with a number in "messier", "ngc" or "ic" (here 110, 106 and 3: M24 and M25 have only an IC number, and M40 and M45 have none). magnitude: only objects as bright as that. type: only that kind ("galaxy", "globular cluster", "open cluster", "nebula", "planetary nebula", "supernova remnant" or "other").

Returns

DeepSkyObject[]

A fresh array of the shared, frozen objects.

Examples

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

console.log(deepSky({ type: "globular cluster", magnitude: 6.5 }).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.