リファレンス · 検索ボックス用の名前の一覧 (明るい星とメシエ天体ごとに、英語・日本語の名前、符号、星座、順位の重み、アドレスに使える ID、向ける先を持つ行。IDと名前で引けます)
nameKey関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A text folded to compare, as findName does: lower case, no accents, Greek letters spelt out and one space, a superscript as its digit; M 31, Messier 31 and m31 give m31, NGC 0224 gives ngc224, HR 2061 and hr2061 give hr2061.
インポート
import { nameKey } from "@johnmorrisdotca/hoshi-stars/names";
ほかのエクスポート元: @johnmorrisdotca/hoshi-stars/names/named, @johnmorrisdotca/hoshi-stars/names/ngc-ic
定義
function nameKey(text: string): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
text | string | Any text. |
戻り値
string
The key.
例
import { nameKey } from "@johnmorrisdotca/hoshi-stars/names";
console.log(nameKey("Messier 31"), nameKey("α Ori"), nameKey("NGC 0224"));m31 alpha ori ngc224出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。