Convert hour to chinese zodiac name: 8 → 'dragon'
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.editorconfig
.gitattributes
.gitignore
.mversionrc
.travis.yml
CHANGELOG.md
LICENSE
README.md
index.js
package.json
test.js

README.md

hour-to-chinese-zodiac

Commitizen friendly XO code style

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Convert hour to chinese zodiac name: 8 → 'dragon'

Demo: vovanr.github.io/hour-to-chinese-zodiac

Install

npm install --save hour-to-chinese-zodiac

Usage

var hourToChineseZodiac = require('hour-to-chinese-zodiac');

hourToChineseZodiac(8);
//=> 'dragon'

hourToChineseZodiac(3);
//=> 'tiger'

hourToChineseZodiac();
//=> ''

License

MIT © Vladimir Rodkin