0.1.1 • Published 6 years ago

date-nodo v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

date nodo

CircleCI

Example

const DateNodo = require('date-nodo');

const ranges = [
  [new Date('2018-09-11'), new Date('2018-11-14')],
  [new Date('2018-08-24'), new Date('2018-12-01')],
  [new Date('2018-10-29'), new Date('2019-01-02')],
]

const dateNodo = new DateNodo({
  format: 'YYYY-MM-DD', // default
  by: 'day'
});

console.log(
  dateNodo.addRanges(ranges).getByDate('2018-11-01')
) // 3
0.1.1

6 years ago

0.0.1

6 years ago