Socket
Socket
Sign inDemoInstall

node-red-contrib-holiday

Package Overview
Dependencies
15
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-red-contrib-holiday

This is my first node red contribution. Pull requests are welcome if you have any improvements! :ok_hand:


Version published
Weekly downloads
72
decreased by-71.98%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

node-red-contrib-holiday

This is my first node red contribution. Pull requests are welcome if you have any improvements! :ok_hand:

This node uses the date-holidays npm package to look up which days are holidays.

You can easily select which types of holidays to include, and also add weekends or any days of the week to include.

This node has two outputs: the top output will be triggered when the input date is a match for holiday or weekend, and the bottom output will be triggered when it's not a match. The top node will also add two properties:

  • weekend is true if the day matches your preset weekend-days, false if not
  • holiday holds details from the underlying library about the holiday, including the name and the type (public, bank, observance etc)

Example usage will be to stop the flow if it is a non-work day, or delay actions on weekends.

example

Keywords

FAQs

Last updated on 12 Apr 2020

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