jsfinancial
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

jsfinancial

Introduction

Pure Javascript library for Financial calculations

Getting Started

npm i jsfinancial --save

or

  • Clone repo from here.
  • Extract the file finance.js from the project and include it in your application on the client side.

Example Usage


    var Finance = require('jsfinancial');
    var cal = new Finance();
    // To calculate EMI
    // 10 L loan for 5 yrs with 10% anual intrest
    cal.EMI(1000000, 10 / 12, 12 \* 5);  
    // => 21247.04
 
### Typescript
import { Finance } from 'jsfinancial'
let cal = new Finance();
// To calculate EMI
cal.EMI(1000000, 10 / 12, 12 * 5);
// => 21247.04

Tests

npm test

Tests in watch mode

npm run test:watch

Available Methods

EMI
Finance.EMI(principal: number, rate: number, tenure: number): number;

Calculate EMI (Equated Monthly Installment) of any given loan amount (principal) for given tenure and intrest rate


cal.EMI(1000000, 10 / 12, 12 * 5);
// => 21247.04

Contributing

Contributions are welcome

To Do

  • Grow library by adding more function

Package Sidebar

Install

npm i jsfinancial

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

23.5 kB

Total Files

7

Last publish

Collaborators

  • dipaktelangre