ugaoo
v0.0.4
Published
Under writing for personal loan
Downloads
4
Readme
uw
description
Installation
This is a Node.js module available through the
npm registry. It can be installed using the
npm
or
yarn
command line tools.
npm install uw --save
import UW, {Bureau, Income, Demographic} from 'uw';
const b= new Bureau();
b.setScore = 300;
b.setNoOfEnquire = 9;
b.setCreditCardUtilization = 81;
b.setOnTimePaymentRatio = 30;
b.setNewLoanAccount = 4;
b.setNewDeliquantAccount = 7;
const d = new Demographic();
d.setEmployerType = 'other'
d.setMonthlySalary = 100001
d.setAccomodationType = 'PAYING_GUEST'
const i = new Income();
i.setNetIncomeEmiRatio = 58
i.setAvgBalanceEmiRatio = 1.6
const uw = new UW({ BUREAU: b, DEMOGRAPHIC: d, INCOME: i });
console.log(uw.scorecard);
console.log(uw.interestRate);
Tests
npm install
npm test
Usage
Reference
To get better vision about the response structure for 4.x.x series and 5.x.x series check the following link. HTTP response structure
Dependencies
None
Dev Dependencies
- chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
- mocha: simple, flexible, fun test framework
- sinon: JavaScript test spies, stubs and mocks.
License
MIT