Hyacinth
Light weight JavaScript library for star sign
Princess Hyacinth, Alfons Maria Mucha
How to use
Install
Install by these commands.
npm install @keisukeyamashita/hyacinth
or
yarn add @keisukeyamashita/hyacinth
In your code
The sample is here.
import hyacinth from '@keisukeyamashita/hyacinth'
import dayjs from 'dayjs'
const starsign = hyacinth(dayjs()).starSign();
console.log(starsign.name);
$ ts-node index.ts
=> "魚座"
Response
The response will be in this format.
type SignStar interface {
id: number
name: string
borderValue: number
}
Support
-
dayjs
Object - Native
Date
Object(not yet:<)