1.0.3 • Published 7 years ago
parse-hol v1.0.3
#parse-hol
Microsoft .hol parser
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
Command | Action |
---|---|
npm test --expose | Run the unit tests on public and private functions |
npm run cover --expose | Run unit tests and show coverage summary in cli |