Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

holiday-jp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

holiday-jp

Japanese holidays, JavaScript porting of Ruby holiday_jp

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
140
increased by1.45%
Maintainers
1
Weekly downloads
 
Created
Source

node-holiday-jp

JavaScript porting of holiday_jp

Installation

npm install holiday-jp

Usage

var holiday = require('holiday-jp')

// find holidays between 3/6/2014 ~ 30/9/2014
// returns Array of Object (see below for their properties)
holiday.between(new Date(2014, 5, 3), new Date(2014, 8, 30))

// whether given date is holiday or not
// return true (or false)
holiday.isHoliday(new Date(2014, 10, 3))

Properties

  • name: String - name of the holiday (ex. "文化の日")
  • nameEn: String - English translation (ex. "National Culture Day")
  • wdayName: String - day of the week (ex. "月")
  • date: Date - Date object of the holiday (ex. Mon Nov 03 2014 00:00:00 GMT+0900 (JST))

License

MIT

Keywords

FAQs

Package last updated on 02 Aug 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc