Installations
npm install uw-rafiki
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
20.13.1
NPM Version
10.8.0
Score
74.8
Supply Chain
97.5
Quality
87.5
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Download Statistics
Total Downloads
7,566
Last Day
8
Last Week
53
Last Month
355
Last Year
6,702
Bundle Size
374.26 kB
Minified
85.11 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.0.53
Package Id
uw-rafiki@0.0.53
Unpacked Size
180.10 kB
Size
20.12 kB
File Count
21
NPM Version
10.8.0
Node Version
20.13.1
Publised On
24 Jul 2024
Total Downloads
Cumulative downloads
Total Downloads
7,566
Last day
-20%
8
Compared to previous day
Last week
23.3%
53
Compared to previous week
Last month
42%
355
Compared to previous month
Last year
675.7%
6,702
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
22
uw-rafiki
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.
1npm install uw-rafiki --save
1# for Pay day loan 2const { default: UW } = require('uw-rafiki'); 3const { PDL } = UW; 4 5const uw = new PDL({ 6 # employmentType can be 'SALARIED', FARMER, CASUAL_WORKER, SELF_EMPLOYED 7 employmentType: 'SALARIED', 8 awb: 10002 , 9 dailyAverageBalance: 10002, 10 # accomodationType can be 'SELF_OWNED', PG_ACCOMODATION, RENTAL_LIVING_ALONE, RENTAL_LIVING_WITH_FAMILY, PARENTAL, OTHERS 11 accomodationType: 'SELF_OWNED', 12 # maritalStatus can be 'MARRIED_WITH_NO_DEPENDENT', MARRIED_WITH_DEPENDENT, UNMARRIED_WITH_DEPENDENT, UNMARRIED_WITH_NO_DEPENDENT, OTHERS 13 maritalStatus: 'MARRIED_WITH_NO_DEPENDENT', 14 age: 31, 15 # scoreCategory can be 'NO-SCORE', RISK, SEVERE, PRIME, ULTIMATE, ELITE 16 scoreCategory: 'NO-SCORE', 17 averageWalletCreditToAwb: 1.01, 18 mobileWalletVintage: 16, 19 minimumNoOfDebitPerMonth: 22, 20 minimumNoOfCreditPerMonth: 10, 21 # walletMnoReportStatus can be 'NEGATIVE', POSITIVE 22 walletMnoReportStatus: 'POSITIVE', 23 # rafikiScoreCategory can be 'LOSS', DOBBTFUL, SUBSTANDARD, CURRENT, NEW_CUSTOMER, ESPECIALLY_MENTIONED 24 rafikiScoreCategory: 'CURRENT' 25 }); 26 27console.log(uw.interestRate); 28console.log(uw.scorecard); 29console.log(uw.isEligibile()); 30console.log(uw.isEligibile(88000)); 31console.log(uw.loans); 32
1# for instant monthly loan 2const { default: UW } = require('uw-rafiki'); 3const { IPL } = UW; 4 5const uw = new IPL({ 6 # employmentType can be 'SALARIED', FARMER, CASUAL_WORKER, SELF_EMPLOYED 7 employmentType: 'SALARIED', 8 awb: 10002 , 9 dailyAverageBalance: 10002, 10 # accomodationType can be 'SELF_OWNED', PG_ACCOMODATION, RENTAL_LIVING_ALONE, RENTAL_LIVING_WITH_FAMILY, PARENTAL, OTHERS 11 accomodationType: 'SELF_OWNED', 12 # maritalStatus can be 'MARRIED_WITH_NO_DEPENDENT', MARRIED_WITH_DEPENDENT, UNMARRIED_WITH_DEPENDENT, UNMARRIED_WITH_NO_DEPENDENT, OTHERS 13 maritalStatus: 'MARRIED_WITH_NO_DEPENDENT', 14 age: 31, 15 # scoreCategory can be 'NO-SCORE', RISK, SEVERE, PRIME, ULTIMATE, ELITE 16 scoreCategory: 'NO-SCORE', 17 averageWalletCreditToAwb: 1.01, 18 mobileWalletVintage: 16, 19 minimumNoOfDebitPerMonth: 22, 20 minimumNoOfCreditPerMonth: 10, 21 # walletMnoReportStatus can be 'NEGATIVE', POSITIVE 22 walletMnoReportStatus: 'POSITIVE', 23 # rafikiScoreCategory can be 'LOSS', DOBBTFUL, SUBSTANDARD, CURRENT, NEW_CUSTOMER, ESPECIALLY_MENTIONED 24 rafikiScoreCategory: 'CURRENT' 25 }); 26 27console.log(uw.interestRate); 28console.log(uw.scorecard); 29console.log(uw.isEligibile()); 30console.log(uw.isEligibile(88000)); 31console.log(uw.loans);
Tests
1npm install 2npm 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
No vulnerabilities found.
No security vulnerabilities found.