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

pholiday

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pholiday - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

example.js
const pholiday = require('./index')
const date = pholiday().add(4, 'days')
const date = pholiday('2013-8-25 16:40:00', 'YYYY-M-D HH:mm:ss').endOf('jMonth')
const momentHijri = require('moment-hijri')
console.log(date.isHoliday())
console.log(date.events())
{
"name": "pholiday",
"version": "0.1.1",
"version": "0.1.2",
"description": "a persian calendar holidays library for javascript",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,2 +18,4 @@ # pholiday

pholiday().isHoliday()
pholiday('1391/12/29', 'jYYYY/jMM/jDD').isHoliday() -> true
pholiday('2013-8-25 16:40:00', 'YYYY-M-D HH:mm:ss').endOf('jMonth').isHoliday() -> false
```

@@ -26,2 +28,5 @@

pholiday().events()
pholiday('2013-8-25 16:40:00', 'YYYY-M-D HH:mm:ss').endOf('jMonth').events()
-> [ { isHoliday: false,
event: 'گاهنبار پَتیَه‌شَهیم، جشن پایان تابستان' } ]
```
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