Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keisukeyamashita/hyacinth

Light weight JavaScript library for star sign 🔮💫🔯
https://github.com/keisukeyamashita/hyacinth

javascript starsign typescript

Last synced: about 2 months ago
JSON representation

Light weight JavaScript library for star sign 🔮💫🔯

Awesome Lists containing this project

README

        

# Hyacinth

[![CI](https://github.com/KeisukeYamashita/hyacinth/workflows/Test/badge.svg)](https://github.com/KeisukeYamashita/hyacinth/actions)
[![npm version](https://badge.fury.io/js/%40keisukeyamashita%2Fhyacinth.svg)](https://badge.fury.io/js/%40keisukeyamashita%2Fhyacinth)
![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)
![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)

> Light weight JavaScript library for star sign



WIAS


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.

```typescript
import hyacinth from '@keisukeyamashita/hyacinth'
import dayjs from 'dayjs'

const starsign = hyacinth(dayjs()).starSign();
console.log(starsign.name);
```

```terminal
$ ts-node index.ts
=> "魚座"
```

### Response

The response will be in this format.

```typescript
type SignStar interface {
id: number
name: string
borderValue: number
}
```

## Support

* `dayjs` Object
* Native `Date` Object(not yet:<)

## Author

* [KeisukeYamashita](https://github.com/KeisukeYamashita)