1.0.11 • Published 5 years ago

@keisukeyamashita/hyacinth v1.0.11

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

Hyacinth

CI npm version GitHub license PRs Welcome

Light weight JavaScript library for star sign

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:<)

Author

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago