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 · A names index for a search box: a row for each bright star and Messier object with its names in English and Japanese, designations, constellation, rank weight, an address-safe id and where to point, with lookup by id and by name

slugOffunction

An address-safe id from a text: lower-case ASCII letters and digits in runs joined by one hyphen; an accent is dropped (Boötes gives bootes) and a Greek letter is spelt out (α1 Centauri gives alpha1-centauri).

Import it

import { slugOf } from "@johnmorrisdotca/hoshi-stars/names";

Also exported from: @johnmorrisdotca/hoshi-stars/names/named, @johnmorrisdotca/hoshi-stars/names/ngc-ic

Definition

function slugOf(text: string): string

Parameters

NameTypeDescription
textstring

Any text.

Returns

string

The id: letters, digits and hyphens only, or an empty string if the text has none.

Examples

import { slugOf } from "@johnmorrisdotca/hoshi-stars/names";

console.log(slugOf("Rigil Kentaurus"), slugOf("α Orionis"));
rigil-kentaurus alpha-orionis

What it prints (run when this page was built)

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