Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 548 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 548 Bytes

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