chinese-year

1.0.9 • Public • Published

chinese-year Build Status

get the zodiac animal name of a certain year

Install

npm install --save chinese-year

Usage

const chineseYear = require('chinese-year')
chineseYear.years
//=> ['Rat', 'Ox', ...]
 
chineseYear.getAnimal(2000)
//=> 'Dragon'

API

.getAnimal(year: number):string

.year:array

get zodiac animal name of a year number

License

MIT © Song Wang

Package Sidebar

Install

npm i chinese-year

Weekly Downloads

58

Version

1.0.9

License

MIT

Last publish

Collaborators

  • songwang