2.0.2 • Published 2 years ago

date-holidays-ical v2.0.2

Weekly downloads
18
License
ISC
Repository
github
Last release
2 years ago

date-holidays-ical

Generate ical (.ics) files from date-holidays data

NPM version Build Status

This tool exports data from date-holidays into iCal format.

Usage

  Usage: holidays-ical [options]

  Options:

    -h, --help         output usage information
    -V, --version      output the version number
    -o, --out <file>   write to file
    -y, --year <year>  year
    -f, --fullday      ical events are per full day
    -s, --showcode     show country code in each ical summary
    -n, --name <name>  instead of country code add your own name to each ical summary
    -q, --query        query for available countries, states, regions by shortcode

  Examples:

    Query for available Countries:
    $ holiday-ical -q

    Query for available States in New Zealand:
    $ holiday-ical -q NZ

    Calender for 2017 New Zealand, Auckland Province:
    $ holiday-ical -f -y 2017 NZ.au

Import the generated file into your calendar tool of choice.

API

var ical = require('date-holidays-ical')()

// query for available countries
var res = ical.query()
//> { AD: 'Andorra',
//>   ..
//>   UY: 'Uruguay' }

// initialize with country, e.g. Uruguay
res = ical.init('UY')
//> true

// get iCal Calender
res = ical.calendar(2016)

LICENSE

ICS

References

2.0.2

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

4 years ago

0.1.5

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

6 years ago

0.1.1

8 years ago

0.1.0

8 years ago