getzodiac

    1.0.8 • Public • Published

    getzodiac

    Installation

    $ npm install getzodiac

    example

    var getzodiac = require('getzodiac');
    var year = 2015 ;  // 参数正确 返回结果为对象
    console.log(getzodiac(year));//{ index: 7, en: 'sheep', cn: '羊' }
    var year = 'sdf' ; // 参数有误 返回结果为''
    console.log(getzodiac(year)); 

    License

    MIT

    Keywords

    Install

    npm i getzodiac

    DownloadsWeekly Downloads

    13

    Version

    1.0.8

    License

    MIT

    Last publish

    Collaborators

    • jaakzhang