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
| Name | Type | Description |
|---|---|---|
options (optional) | DeepSkyOptions |
|
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)