项目作者: diegofigs

项目描述 :
Small library for calculation of basic financial factors.
高级语言: JavaScript
项目地址: git://github.com/diegofigs/finance-factors.git
创建时间: 2017-02-24T03:23:25Z
项目社区:https://github.com/diegofigs/finance-factors

开源协议:MIT License

下载


Standard - JavaScript Style Guide
npm version
Build Status
Open Source Love
Open Source Love

finance-factors

A Node.js package for calculation of basic financial factors.

Usage

First, install the package using npm:

  1. npm install finance-factors --save

Then, require the package and use it like so:

  1. // RequireJS
  2. var financeFactors = require('finance-factors');
  3. // ES6
  4. import * as financeFactors from 'finance-factors';
  5. // Present Worth Factor based on Single Payment
  6. // with a 5% interest from 12 periods
  7. console.log(financeFactors.singlePW(5, 12));
  8. // Future Worth Factor based on Single Payment
  9. // with a 5% interest over 12 periods
  10. console.log(financeFactors.singleFW(5, 12));

License

This library is licensed under MIT.