6.0.3 • Published 5 years ago

@vitorteccom/dekajs v6.0.3

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
5 years ago

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.

6.0.3

5 years ago

6.0.2

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

5.0.8

5 years ago

5.0.7

5 years ago

5.0.6

5 years ago

5.0.5

5 years ago

5.0.4

5 years ago

5.0.3

5 years ago

5.0.2

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.0.7

5 years ago

4.0.6

5 years ago

4.0.5

5 years ago

4.0.4

6 years ago

4.0.3

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago