New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kyungseopk1m/holidays-kr

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kyungseopk1m/holidays-kr

한국천문연구원 기반 대한민국 공휴일 데이터

  • 1.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

holidays-kr

  • 공공데이터포털 내 한국천문연구원의 공휴일 정보를 기반으로 데이터를 제공합니다.
  • 2004년부터의 공휴일 정보를 제공하며, 매월 3회에 걸쳐 주기적으로 최신 데이터를 불러옵니다.
  • 매년 다음해의 공휴일 정보를 불러올 수 있고, 후년의 정보는 불러오지 않습니다.
  • commonjsESM을 지원합니다.

Install

npm i @kyungseopk1m/holidays-kr

Usage

import { holidays } from '@kyungseopk1m/holidays-kr';

const result = await holidays('2024');

console.log(result);    // 2024.01 ~ 2024.12 데이터

// or

const { holidays } = require('@kyungseopk1m/holidays-kr');

const data = await holidays('2010', '2015');

console.log(data);    // 2010.01 ~ 2015.12 데이터

Output

속성설명
success호출 성공 여부
message호출 메시지
name공휴일의 이름
date'YYYYMMDD' 형식의 날짜

interface response {
    success: boolean;
    message: string;
    data: example[];
}

interface example {
    date: number;
    name: string;
}

License

MIT

Keywords

FAQs

Package last updated on 04 Oct 2024

Did you know?

Socket

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.

Install

Related posts

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