Skip to content

VovanR/hour-to-chinese-zodiac

Repository files navigation

hour-to-chinese-zodiac

Hour to Chinese zodiac logo

Commitizen friendly XO code style

NPM version Build Status Coveralls 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