/chinese-year

get the zodiac animal name of a year

Primary LanguageJavaScriptMIT LicenseMIT

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