Gathering detailed insights and metrics for @paycar-cli/transfer-eta-module
Gathering detailed insights and metrics for @paycar-cli/transfer-eta-module
npm install @paycar-cli/transfer-eta-module
Typescript
Module System
Node Version
NPM Version
73.1
Supply Chain
98.9
Quality
77.9
Maintenance
100
Vulnerability
100
License
Total Downloads
2,517
Last Day
1
Last Week
2
Last Month
47
Last Year
240
Minified
Minified + Gzipped
Latest Version
3.2.3
Package Id
@paycar-cli/transfer-eta-module@3.2.3
Unpacked Size
37.66 kB
Size
8.93 kB
File Count
28
NPM Version
6.9.0
Node Version
12.1.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-87.5%
2
Compared to previous week
Last month
840%
47
Compared to previous month
Last year
-50.5%
240
Compared to previous year
node >= 12.1.0
/!\ lib use es6 import /!\
npm i
npm run example
or node --experimental-modules --experimental-json-modules example/node-esm-example.js
npm run build
<script src="dist/main.d2d647ef096f9410f236.js"><script>
example with a transfert eta in express mode
1 import { transferEta } from '@paycar-cli/wire-transfer-timeline-simulator/src/index.js' 2 3 const result = transferEta('15/04/2019 8:00:00', true, 'fr')
result :
1 { 2 isExpress: true, 3 transferCreationDateString: '15/04/2019 8:00:00', 4 transferCreatedAt: 2019-04-15T08:00:00.001Z, 5 transferExecutedAt: { 6 date: 2019-04-15T08:00:00.001Z 7 }, 8 transferEarliestEta: { 9 date: 2019-04-15T20:00:00.001Z 10 } 11 }
example with a transfert eta
1 import { transferEta } from '@paycar-cli/wire-transfer-timeline-simulator/src/index.js' 2 3 const result = transferEta('18/04/2019 8:00:00', false, 'fr')
result :
1{ 2 isExpress: false, 3 transferCreationDateString: '18/04/2019 8:00:00', 4 transferCreatedAt: 2019-04-18T08:00:00.001Z, 5 transferExecutedAt: { 6 date: 2019-04-18T08:00:00.001Z, 7 daysOff: { weekend: [], holidays: [] } 8 }, 9 transferEarliestEta: { 10 date: 2019-04-23T08:00:00.001Z, 11 daysOff: { 12 weekend: [ 13 2019-04-20T08:00:00.001Z, 14 2019-04-21T08:00:00.001Z 15 ], 16 holidays: [ 17 2019-04-19T08:00:00.001Z, 18 2019-04-22T08:00:00.001Z 19 ] 20 } 21 }, 22 transferLatestEta: { 23 date: 2019-04-24T08:00:00.001Z, 24 daysOff: { 25 weekend: [ 26 2019-04-20T08:00:00.001Z, 27 2019-04-21T08:00:00.001Z 28 ], 29 holidays: [ 30 2019-04-19T08:00:00.001Z, 31 2019-04-22T08:00:00.001Z 32 ] 33 } 34 } 35}
[new] method transfer eta request date
import { transferRequestDate } from './../../src/index.js'
import { TransactionMustBeInFuture } from "../../src/helpers/error/transaction-must-be-in-future.js";
import {TransactionDateIsTooShort} from "../../src/helpers/error/transaction-date-is-too-short.js";
const dateBankHolidaysWorks = '7/07/2019 8:00:00'
let result
try {
result = transferRequestDate(dateBankHolidaysWorks, 'fr')
} catch (e) {
console.log(e)
}
No vulnerabilities found.
No security vulnerabilities found.