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 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "node-irr",
"version": "1.0.1",
"version": "1.0.2",
"description": "A Node.js package that provides an easy and customizable way to calculate internal rate of return.",

@@ -5,0 +5,0 @@ "author": "Eric Malachias",

@@ -29,2 +29,3 @@ # node-irr

// -> 0.032970974180430046
// -> ~3.29%
```

@@ -42,8 +43,11 @@

{ amount: -10, date: '20180101' },
{ amount: 5, date: '20180201' },
{ amount: 0.1, date: '20180301' },
{ amount: 10, date: '20180201' },
{ amount: 0.05, date: '20180301' },
]
console.log(xirr(data))
// -> { days: 60, rate: -0.020988389740661084 }
// -> { days: 60, rate: 0.00016018311916865535 }
// ^^^^^^^^^^^^^^^^^^^^^^ -> daily rate
// -> ~0.016% per day
// -> ~6.02% per year
```

@@ -50,0 +54,0 @@

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