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

date-holidays

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-holidays - npm Package Compare versions

Comparing version 0.1.7 to 0.1.9

build/holidays2json.js

4

CONTRIBUTING.md

@@ -33,5 +33,5 @@ # Contributing

```
mocha test/add.mocha.js --writetests
mocha test/all.mocha.js --writetests
```
Now check any changes with `git diff test/assets`. Make sure that your changes did not affect other countries.
Now check any changes with `git diff test/fixtures`. Make sure that your changes did not affect other countries.
8. Push your branch to GitHub and submit a pull request

@@ -38,0 +38,0 @@ 9. Monitor the pull request to make sure the Travis build succeeds.

{
"name": "date-holidays",
"version": "0.1.7",
"version": "0.1.9",
"description": "worldwide holidays",
"main": "lib",
"bin": {
"holidays2json": "./build/holidays2json.js"
},
"directories": {

@@ -11,6 +14,8 @@ "test": "test"

"Mauro Braggio <m.braggio@e-time.it>",
"Quennie <simply.me.queeny@gmail.com>"
"Quennie <simply.me.queeny@gmail.com>",
"Christian Schinnerl <Schinnerl.Christian@gmail.com>"
],
"dependencies": {
"date-easter": "^0.2.2",
"js-yaml": "^3.8.1",
"lodash": "^4.17.4",

@@ -22,7 +27,8 @@ "moment-timezone": "^0.5.11",

"eslint": "^3.15.0",
"eslint-config-standard": "^6.2.1",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-promise": "^3.4.1",
"eslint-plugin-standard": "^2.0.1",
"eslint-plugin-standard": "^3.0.1",
"istanbul": "^0.4.5",
"js-yaml": "^3.8.1",
"mocha": "^3.2.0",

@@ -33,4 +39,4 @@ "rimraf": "^2.5.4"

"test": "mocha test/*.mocha.js",
"pack": "npm run clean && npm i && npm run yaml && npm run lint && npm test && npm pack",
"yaml": "node build/yaml2json.js",
"all": "npm run clean && npm i && npm run yaml && npm run lint && npm test && npm pack",
"yaml": "node build/holidays2json.js",
"cover": "istanbul cover _mocha --report lcov --report text -- -R dot --check-leaks test/*.mocha.js",

@@ -37,0 +43,0 @@ "lint": "eslint --quiet '**/*.js'",

@@ -36,2 +36,3 @@ # date-holidays

* [Data](#data)
* [Custom builds of `holidays.json`](#custom-builds-of-holidaysjson)
* [Contribution and License Agreement](#contribution-and-license-agreement)

@@ -442,2 +443,25 @@ * [License](#license)

## Custom builds of `holidays.json`
If only selected countries are required in `data/holidays.json` you can add the following script to your npm scripts section. E.g. for picking just US, Canada, Mexico do the following:
```js
"scripts": {
"build": "holidays2json --pick US,CA,MX"
},
```
Alternatively you may use the `--omit` option.
Manually use
```bash
$(npm bin)/holidays2json --pick US,CA,MX
```
> **NOTE:** There are some countries which depend on data of others which
> might render the file useless. e.g. "GU" requires "US", so try
> to pick or omit both.
## Contribution and License Agreement

@@ -479,2 +503,1 @@

[date-holidays-ical]: https://github.com/commenthol/date-holidays-ical

Sorry, the diff of this file is too big to display

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