This package has been deprecated

    Author message:

    This package is discontinued. Use https://www.npmjs.com/package/@vitorteccom/dekajs

    vitorteccom-dekajs

    2.0.1 • Public • Published

    Dekajs

    DEKAtrian for JavaScript

    Software License Latest Version on NPM Total Downloads Scrutinizer Code Quality Code Coverage Build Status

    This is a simple library for converting dates between Dekatrian and Gregorian calendars. This library is not official.

    This package is compatible with code style Standard.

    Structure

    This is the directory structure.

    coverage/
    docs/
    examples/
    node_modules/
    src/
    tests/
    

    Install

    Via NPM.

    $ npm install vitorteccom-dekajs

    Usage

    This is minimal example node.

    var Dekatrian = require('vitorteccom-dekajs')

    Check if a Dekatrian date is valid or not.

    Dekatrian.checkDekatrian(2018, 13, 28)
    // Return boolean, true

    Convert from Dekatrian to Gregorian calendars.

    Dekatrian.dekatoGreg(2018, 13, 28)
    // Return string, 2018-12-31

    Convert from Gregorian to Dekatrian calendars.

    Dekatrian.gregToDeka(2018, 12, 31)
    // Return string, 2018-13-28

    Change log

    Please see CHANGELOG for more information on what has changed recently.

    Testing

    Test with Mocha, we also recommend Istanbul.

    $ npm run test

    Contributing

    Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

    Security

    If you discover any security related issues, please email contato@vitortec.com instead of using the issue tracker.

    Credits

    License

    GPL-3.0-or-later. Please see License File for more information.

    Install

    npm i vitorteccom-dekajs

    DownloadsWeekly Downloads

    1

    Version

    2.0.1

    License

    GPL-3.0-or-later

    Unpacked Size

    53.7 kB

    Total Files

    14

    Last publish

    Collaborators

    • vitorteccom