dreamspell-math

dreamspell-math

Usage no npm install needed!

<script type="module">
  import dreamspellMath from 'https://cdn.skypack.dev/dreamspell-math';
</script>

README

Build Status Coverage Status MIT license

dreamspell-math

A JavaScript library with DreamSpell date, Zolkin & extras calculations.

Details: http://www.lawoftime.org/lawoftime.html

Installing

For the latest stable version:

npm install --save dreamspell-math

Usage

const { dreamdate } = require('dreamspell-math');

// anything that can be parsed to moment() can be used as input
// See https://momentjs.com/docs/#/parsing/ for details

const date = dreamdate([2018, 06, 26]);
// const date = dreamdate(new Date(1985, 7 - 1, 23));
// const date = dreamdate(moment('1985-07-23'));

var kin = date.kin;
const { kin } = require('dreamspell-math');

const kin1 = kin(1);
const tone1 = kin1.tone;
const sign1 = kin1.sign
const * as g = require('dreamspell-math');

const kin260 = g.kin(g.tone(13), g.sign(20));