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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mutualfund-info

v1.0.2

Published

NPM Package to get the NAVs of Mutual Funds in India

Readme

mutualfund-info

NPM Package to get the current(Today's) NAVs of Mutual Funds in India

The data is being fetched from Association of Mutual Funds India (AMFI)'s portal https://www.amfiindia.com/

Usage

Get all Navs . This returns all the Mutual Funds' Navs in an array format

import mfInfo from "mutualfund-info";

const mfInstance = new mfInfo();
const navs = await mfInstance.getAllNavs();
console.log("navs", navs);

OR

import mfInfo from "mutualfund-info";

const mfInstance = new mfInfo();
console.log(mfInstance.about());

(async () => {
  const navs = await mfInstance.getAllNavs();
  console.log("navs", navs);
})();
// Sample Output of a NAV Object
[
  {
    'Scheme Code': '116174',
    'ISIN Div Payout/ ISIN Growth': 'INF109K01YE1',
    'ISIN Div Reinvestment': 'INF109K01YD3',
    'Scheme Name': 'ICICI Prudential Banking and PSU Debt Fund - Quarterly IDCW',
    'Net Asset Value': '10.8471',
    Date: '11-Feb-2025',
    'AMC Name': 'ICICI Prudential Mutual Fund',
    'Scheme Type': 'Open Ended Schemes(Debt Scheme - Banking and PSU Fund)'
  },
  ....
]
// Note that this will be an array of objects
// You can filter the navs by scheme type as below
const debtNavs = navs.filter(nav => nav['Scheme Type'].includes('Debt'));
console.log("debtNavs", debtNavs);

// You can also filter by AMC Name
const iciciPrudentialNavs = navs.filter(nav => nav['AMC Name'] === 'ICICI Prudential Mutual Fund');
console.log("iciciPrudentialNavs", iciciPrudentialNavs);

// you can filter by Scheme Name, Scheme Code etc

Fetch Nav of a particular Mutual Fund By it's Scheme Name

there is a inbuilt You can fetch a MF's Nav by its name as below by using the fetchNavBySchemeName method.

var schemeName =
  "Aditya Birla Sun Life Banking & PSU Debt Fund  - DIRECT - IDCW";
var schemeNav = await mfInstance.fetchNavBySchemeName(schemeName);
console.log("schemNav", schemeNav);
/*
// The sample will be something similar to
[{
  'Scheme Code': '119551',
  'ISIN Div Payout/ ISIN Growth': 'INF209KA12Z1',
  'ISIN Div Reinvestment': 'INF209KA13Z9',
  'Scheme Name': 'Aditya Birla Sun Life Banking & PSU Debt Fund  - DIRECT - IDCW',
  'Net Asset Value': '154.6417',
  Date: '21-May-2021',
  'AMC Name': 'Aditya Birla Sun Life Mutual Fund',
  'Scheme Type': 'Open Ended Schemes(Debt Scheme - Banking and PSU Fund)'
}]
*/

Fetch Nav of a particular Mutual Fund By it's Scheme Code

You can fetch a MF's Navby its code as below by using the fetchNavBySchemeCode method.

var schemeCode = "119551";
var schemecodeNav = await mfInstance.fetchNavBySchemeCode(schemeCode);
console.log("schemNav", schemecodeNav);
/*
// The sample will be something similar to
[{
  'Scheme Code': '119551',
  'ISIN Div Payout/ ISIN Growth': 'INF209KA12Z1',
  'ISIN Div Reinvestment': 'INF209KA13Z9',
  'Scheme Name': 'Aditya Birla Sun Life Banking & PSU Debt Fund  - DIRECT - IDCW',
  'Net Asset Value': '154.6417',
  Date: '21-May-2021',
  'AMC Name': 'Aditya Birla Sun Life Mutual Fund',
  'Scheme Type': 'Open Ended Schemes(Debt Scheme - Banking and PSU Fund)'
}]
*/
console.log(mfInstance.about());
// returns the about message of the package
// "mutualfund-info - NPM Package to get the NAVs of Mutual Funds in India."