npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

spain-holidays

v2027.0.0

Published

Official public holidays of Spain for 2027: national dates plus the 17 autonomous communities, with the bulletin each one comes from (BOE, BOA, BOC, BON, DOCM, DOGC...). JSON, zero dependencies.

Readme

spain-holidays

Official public holidays of Spain for 2027: the 9 national dates plus the regional dates of the 17 autonomous communities, each with the official bulletin it was taken from (BOE, BOA, BOC, BON, DOCM, DOGC and so on). Plain JSON, no dependencies, works in Node and in the browser with any bundler.

Every date was checked against the official publication listed in source. The data is maintained by the team at SueldoClaro and also published as CSV and ICS files in the spain-public-holidays repository.

Install

npm install spain-holidays

Use

const sh = require('spain-holidays');

sh.national();            // the 9 national dates
sh.holidays('ES-MD');     // all 12 holidays of the Comunidad de Madrid, sorted
sh.holidays('cataluña');  // region names work too
sh.isHoliday('2027-03-19', 'ES-GA');   // { date: '2027-03-19', name_es: 'San José', ... } or null
sh.nextHoliday('ES-AN', '2027-06-01'); // next holiday in Andalucía from 1 June 2027
sh.source('ES-NC');       // { label: 'Resolución 232/2026 ... (BON nº 103 ...)', url: 'https://bon.navarra.es/...' }
sh.regions();             // [{ code: 'ES-AN', name: 'Andalucía' }, ...]

Region codes are ISO 3166-2: ES-AN, ES-AR, ES-AS, ES-IB, ES-CN, ES-CB, ES-CL, ES-CM, ES-CT, ES-EX, ES-GA, ES-MD, ES-MC, ES-NC, ES-PV, ES-RI, ES-VC.

Each holiday object: { date, weekday, scope, name_es, name_en }. scope is national or regional.

What is not included

Local holidays (two per municipality) are published town by town and are not in this package; they are kept on the SueldoClaro region pages. Ceuta and Melilla are not included yet.

License

Data under CC BY 4.0: use it in any project, including commercial ones, with a credit to "SueldoClaro" and a link to https://sueldoclaro.es/. The underlying facts are public information from the official gazettes of Spain and its regions.