Socket
Book a DemoInstallSign in
Socket

nse_holidays

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nse_holidays

This repo is of an npm package. Which helps in checking whether today is a holiday or trading day of NSE India

latest
npmnpm
Version
1.1.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

nse_holidays

This repo is of an npm package. Which helps in checking whether today is a holiday or trading day of NSE India

Usage

const {isTodayHoliday} = require("nse_holidays");

async function check(){

  return await isTodayHoliday();
  
} //returns an object {isHoliday:true,Holiday:"Republic Day"} or {isHoliday:false,Holiday:"no holiday"}

check() //calling function

Note

isTodayHoliday() //return a promise which resolves into an object try enclosing 'isTodayHoliday()' inside a async function

FAQs

Package last updated on 26 Feb 2023

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