3.0.1 • Published 12 months ago

@webcarrot/xirr v3.0.1

Weekly downloads
45
License
MIT
Repository
github
Last release
12 months ago

xirr · GitHub license · npm version · JSR

JavaScript implementation of the XIRR LibreOffice function. It should give the same results as equivalents from LibreOffice Calc, MS Excel, Google Spreadsheet etc.

Usage

import { xirr, CashFlow } from "@webcarrot/xirr";

const flows: Array<CashFlow> = [
  {
    amount: 100,
    date: new Date("2019-02-02"),
  },
  {
    amount: -120,
    date: new Date("2019-03-02"),
  },
];

try {
  console.log("XIRR:", xirr(flows), "of", flows);
} catch (err) {
  console.log(err);
}
3.0.1

12 months ago

3.0.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago