swedish-holidays
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "swedish-holidays", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Library for calculating the date of all swedish holidays for any given year.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/holidays.js", |
@@ -5,6 +5,8 @@ # swedish-holidays | ||
## How to install: | ||
`npm install swedish-holidays` | ||
```shell | ||
$ npm install swedish-holidays | ||
``` | ||
## How to use: | ||
``` | ||
```js | ||
const { getHolidays, getUpcomingHolidays, isHoliday } = require('swedish-holidays'); | ||
@@ -28,7 +30,7 @@ | ||
The result will always be an ```Array``` filled with JSON formatted holiday information including name and date. | ||
``` | ||
```json | ||
[ | ||
{ | ||
name: 'Julafton', | ||
date: 2019-12-24T00:00:00.000Z, | ||
date: '2019-12-24T00:00:00.000Z', | ||
day: 24, | ||
@@ -40,3 +42,3 @@ month: 12, | ||
name: 'Juldagen', | ||
date: 2019-12-25T00:00:00.000Z, | ||
date: '2019-12-25T00:00:00.000Z', | ||
day: 25, | ||
@@ -49,3 +51,3 @@ month: 12, | ||
``` | ||
When using ```isHoliday``` the result is ```true``` or ```false```. | ||
When using `isHoliday` the result is `true` or `false`. | ||
@@ -52,0 +54,0 @@ ## Limitations |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30027
77