リファレンス · 検索ボックス用の名前の一覧 (明るい星とメシエ天体ごとに、英語・日本語の名前、符号、星座、順位の重み、アドレスに使える ID、向ける先を持つ行。IDと名前で引けます)
nameRows関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The rows of the index: the 5,080 bright stars and the 110 Messier objects, brightest and best-known first (by weight), as a fresh array of rows. For the NGC and IC objects see /names/ngc-ic.
インポート
import { nameRows } from "@johnmorrisdotca/hoshi-stars/names";
定義
function nameRows(options?: { kinds?: readonly NameKind[]; }): NameRow[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
options (省略可) | { kinds?: readonly NameKind[]; } |
|
戻り値
NameRow[]
The rows.
例
import { nameRows } from "@johnmorrisdotca/hoshi-stars/names";
const rows = nameRows();
console.log(rows.length, rows[0].id, nameRows({ kinds: ["galaxy"] }).length);5190 sirius 40出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。