Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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

Install

npm i parse-hol

DownloadsWeekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar