chinese-year
v1.0.9
Published
get the zodiac animal name of a year
Downloads
87
Readme
chinese-year
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