0.0.2 • Published 7 years ago

shiftly v0.0.2

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
7 years ago

Shiftly Build Status

Utility for calculating common public safety shift schedules.

Installation

Using npm:

npm install shiftly

In Node.js:

var shiftly = require('shiftly');

// http://www.fairfaxcounty.gov/fr/schedule/
var fairfaxFire = {
  firstDay: '2016-10-14',
  pattern: 'acababcbc'
}

var fairfax = new shiftly.ShiftConfiguration(fairfaxFire);
fairfax.calculateShift('2017-01-18T09:00:30-0400')
// returns 'C'

Tests

To run the test suite, first install the dependencies, then run npm test:

npm install
npm test
0.0.2

7 years ago

0.0.1

7 years ago