Socket
Socket
Sign inDemoInstall

date-holidays-ical

Package Overview
Dependencies
15
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    date-holidays-ical

Generate ical files from date-holidays data


Version published
Weekly downloads
3
decreased by-62.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 12 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc