Dekajs
DEKAtrian for JavaScript
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.