
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@bshada/nseapi
Advanced tools
TypeScript/JavaScript client for NSE India endpoints.
dist/index.d.ts after build)This library targets Node.js environments only. It relies on Node core modules like fs, path, and zlib, and performs file I/O for cookie persistence and report downloads. It is not intended for use in browsers.
npm install @bshada/nseapi
# or
yarn add @bshada/nseapi
# or
pnpm add @bshada/nseapi
// ESM / TypeScript
import { NSE } from '@bshada/nseapi';
// Create an instance with a download/cache folder (used for cookies and downloaded reports)
const nse = new NSE('./downloads', { server: false, timeout: 15000 });
// CommonJS
const { NSE } = require('@bshada/nseapi');
const nse = new NSE('./downloads', { server: false, timeout: 15000 });
Notes:
server: true uses HTTP/2 via got, which can be better in some environments. server: false uses axios.nse_cookies_http1.json or nse_cookies_http2.json.import { NSE } from '@bshada/nseapi';
const nse = new NSE('./downloads');
// Market status
const status = await nse.status();
console.log('Market state:', status);
// Fetch current IPOs
const currentIpo = await nse.listCurrentIPO();
console.log('Current IPOs:', currentIpo);
// IPO details (EQ or SME series)
const urbancoIpo = await nse.getIpoDetails({ symbol: 'URBANCO', series: 'EQ' });
console.log('URBANCO IPO details:', urbancoIpo);
// Equity quote
const quote = await nse.equityQuote('HDFCBANK');
console.log('HDFCBANK quote:', quote);
const status = await nse.status();
console.log('Market state:', status);
npm run build — Build ESM to dist/ and CJS to dist-cjs/The full list of methods is available in the NSE class under src/nse/NSE.ts. A summary is below. See inline JSDoc and README.md in the original repo for detailed examples.
status(), lookup()equityBhavcopy(), deliveryBhavcopy(), indicesBhavcopy(), fnoBhavcopy(), priceband_report(), pr_bhavcopy(), cm_mii_security_report()actions(), announcements(), boardMeetings(), annual_reports()equityMetaInfo(), quote(), equityQuote()listEquityStocksByIndex(), listIndices(), listEtf(), listSme(), listSgb()listCurrentIPO(), listUpcomingIPO(), listPastIPO(), getIpoDetails()circulars(), blockDeals()fnoLots(), optionChain(), getFuturesExpiry(), compileOptionChain(), NSE.maxpain()fetch_equity_historical_data(), fetch_historical_vix_data(), fetch_historical_fno_data(), fetch_historical_index_data()fetch_fno_underlying(), fetch_index_names(), fetch_daily_reports_file_metadata()MIT
FAQs
An unofficial TypeScript API for NSE India (based on NseIndiaApiTs)
We found that @bshada/nseapi demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.