parse-hol

1.0.3 • Public • Published

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

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

Package Sidebar

Install

npm i parse-hol

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • ryanofrit