Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 564 Bytes

File metadata and controls

26 lines (20 loc) · 564 Bytes

Shiftly Build Status

Utility for calculating common public safety shift schedules.

Installation

Using npm:

npm install @statengine/shiftly

In Node.js:

const shiftly = require('@statengine/shiftly');

const fairfax = shiftly.fairfaxVA();
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