1.0.3 • Published 7 years ago

parse-hol v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

#parse-hol
Microsoft .hol parser

Build Status Coverage Status

Install

$ npm install parse-hol

Usage

var parseHOL = require('parse-hol');
var fs = require('fs');

var data = fs.readFileSync('outlook.hol', 'utf8');
var result = parseHOL(data);

console.log(result);
/*
{
  'location 1': {
    'holiday 1': ['1/24/2016'],
    'holiday 2': ['2/06/2017', '2/07/2017']
  },
  'location 2': {
    'other holiday 1': ['12/16/2015'],
    'other holiday 2': ['2/06/2017', '2/07/2017']
  }
}
*/

Development

CommandAction
npm test --exposeRun the unit tests on public and private functions
npm run cover --exposeRun unit tests and show coverage summary in cli