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

niftyfifty

v0.10.1

Published

Nifty, Data, Finance

Downloads

10

Readme

niftyfifty

A module that gives minute by minute data of NIFTY 50 companies for research.

HOW TO INSTALL

#npm install niftyfifty --save

HOW TO USE

var niftyfifty = require('niftyfifty');

//use this to get data in form of an array
niftyfifty.fetchData("BHEL", -330, function(err, data){
	if(err){
		console.log("Error is ", err);
	}else{
		console.log("Data is ", data);
	}
})

//use this to save the data as a csv in the folder named files in the same directory
niftyfifty.saveDataAsCsv("BHEL", -330, function(err, created){
	if(err){
		console.log(err);
	}else{
		console.log(created);
	}
})

First argument is company symbol, second argument is timezone, -330 is for India.

Companies symbol list to be used as first argument is as under:

  1. NIFTY 50 for Nifty Fifty
  2. BANKNIFTY for Bank Nifty
  3. ADANIPORTS for Adani Ports & SEZ Limited
  4. ASIANPAINT for Asian Paints Ltd
  5. AXISBANK for Axis Bank
  6. BAJAJ-AUTO for Bajaj Auto
  7. BAJFINANCE for Bajaj Finance
  8. BAJAJFINSV for Bajaj Finserv
  9. BHARTIARTL for Bharti Airtel
  10. BPCL for Bharat Petroleum Corporation Limited
  11. CIPLA for Cipla
  12. COALINDIA for Coal India
  13. DRREDDY for Dr. Reddy's Laboratories
  14. EICHERMOT for Eicher Motors
  15. GAIL for Gas Authority of India
  16. GRASIM for Grasim Industries
  17. HCLTECH for HCL Techniologies
  18. HDFC for HDFC
  19. HDFCBANK for HDFC Bank
  20. HEROMOTOCO for Hero Moto Corp
  21. HINDALCO for Hindalco Industries
  22. HINDUNILVR for Hindustan Uniliver
  23. HINDPETRO for Hindpetro Energy
  24. ICICIBANK for ICICI Bank
  25. IBULHSGFIN for Indiabulls Housing Finance
  26. INDUSINDBK for IndusInd Bank
  27. INFY for Infosys
  28. IOC for Indian Oil Corporation
  29. ITC for ITC Limited
  30. KOTAKBANK for Kotak Bank
  31. LT for Larsen & Toubro
  32. LUPIN for Lupin Limited
  33. M&M for Mahindra and Mahindra
  34. MARUTI for Maruti Suzuki
  35. NTPC for NTPC Limited
  36. ONGC for ONGC Energy
  37. POWERGRID for PowerGrid Corporation of India
  38. RELIANCE for Reliance Industries
  39. SBIN for State Bank of India
  40. SUNPHARMA for Sun Pharmaceutical
  41. TCS for Tata Consultancy Services
  42. TATAMOTORS for Tata Motors
  43. TATASTEEL for Tata Steel
  44. TECHM for Tech Mahindra
  45. TITAN for Titan Company
  46. ULTRACEMCO for UltraTech Cement
  47. UPL for United Phosphorus Limited
  48. VEDL for Vedanta
  49. WIPRO for Wipro
  50. YESBANK for Yes Bank
  51. ZEEL for Zee Entertainment Enterprises