Nonchalantly Perusing Magazines

    This package has been deprecated

    Author message:

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

    @vitorteccom/dekajs

    6.0.3 • Public • Published

    Dekajs

    Software License Latest Version on NPM Total Downloads Build Status Coverage Status

    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 StandardJS and LibreJS.

    Install

    This project uses Node.js and npm.

    $ npm install @vitorteccom/dekajs

    Usage

    CommonJS module.

    const dekatrian = require('@vitorteccom/dekajs')
     
    // 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

    ECMAScript module.

    <script type="module">
      import { dekaToGreg, gregToDeka } from 'https://unpkg.com/@vitorteccom/dekajs/lib/main.mjs'
     
      // Convert from Dekatrian to Gregorian calendars
      dekaToGreg(2018, 13, 28)
      // Return string, 2018-12-31
     
      // Convert from Gregorian to Dekatrian calendars
      gregToDeka(2018, 12, 31)
      // Return string, 2018-13-28
    </script> 

    Contributing

    Pull Requests not accepted, please contact us at: contato@vitortec.com.

    Contributors

    License

    GPL-3.0-or-later, please see COPYING file for more information.

    Install

    npm i @vitorteccom/dekajs

    DownloadsWeekly Downloads

    23

    Version

    6.0.3

    License

    GPL-3.0-or-later

    Unpacked Size

    52.8 kB

    Total Files

    12

    Last publish

    Collaborators

    • vitorteccom