Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
sp-holidays
Advanced tools
Biblioteca que lhe fornece todos os feriados nacionais, regionais e municipais de são Paulo até 2030
$ npm install sp-holidays --save
Biblioteca criada para fins de uso pessoal e aprendizado. Base dados utilizada proveniente do usuário: joaopbini
OBS: Suporte a Typescript.
const { isHoliday, isWorkday } = require("sp-holidays");
// ES2015 modules
import { isHoliday, isWorkday } from "sp-holidays";
console.log(isHoliday({ dateString: "01-01-2023" }));
/*
Holiday {
name: 'Ano novo',
description: 'Dia da confraternização universal',
date: 2023-01-01T03:00:00.000Z,
type: 'national',
isOptional: undefined,
uf: undefined,
town: undefined
}
*/
console.log(isHoliday({ dateString: "09-07-2023", stateUF: "SP" }));
/*
Holiday {
name: 'Revolução Constitucionalista',
description: 'A Revolução Constitucionalista de 1932 foi um movimento armado que tinha por objetivo a derrubada do Governo Provisório de Getúlio Vargas e a promulgação de uma nova constituição para o Brasil.',
date: 2023-07-09T03:00:00.000Z,
type: 'state',
isOptional: undefined,
uf: 'SP',
town: ''
}
*/
console.log(isHoliday({ dateString: "09-07-2023", stateUF: "SP", town: 'Adamantina' }));
/*
Holiday {
name: 'Feriado Municipal',
description: '',
date: 2023-12-08T03:00:00.000Z,
type: 'municipal',
isOptional: undefined,
uf: 'SP',
town: 'Adamantina'
}
*/
console.log(isWorkday({ dateString: "09-07-2023", stateUF: "SP", town: 'Adamantina' }));
/*
false
*/
FAQs
Biblioteca que lhe fornece todos os feriados nacionais, estaduais e municipais
The npm package sp-holidays receives a total of 3 weekly downloads. As such, sp-holidays popularity was classified as not popular.
We found that sp-holidays demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.