Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-irr

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-irr

Provides easy and customizable ways to calculate internal rate of return.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-irr

A Node.js package that provides easy and customizable ways to calculate internal rate of return.

Installation

# using yarn
yarn add node-irr

# using npm
npm install node-irr --save

Usage

// irr
const { irr } = require('node-irr')
const data = [-10, -10, 21]

console.log(irr(data))

// xirr
const { xirr } = require('node-irr')
const data = [
  { amount: -10, date: '20180101' },
  { amount: 5, date: '20180201' },
  { amount: 0.1, date: '20180301' },
]

console.log(xirr(data))

Keywords

FAQs

Package last updated on 01 Dec 2018

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