Socket
Socket
Sign inDemoInstall

swedish-holidays

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swedish-holidays - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"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

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