ScanOC / shiftly

Utility for calculating public safety shift schedules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Utility for calculating public safety shift schedules.

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%