Gathering detailed insights and metrics for pg-interval
Gathering detailed insights and metrics for pg-interval
Gathering detailed insights and metrics for pg-interval
Gathering detailed insights and metrics for pg-interval
npm install pg-interval
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
2 Stars
31 Commits
1 Branches
1 Contributors
Updated on 23 Nov 2021
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-66.7%
1
Compared to previous day
Last week
85.7%
13
Compared to previous week
Last month
28.6%
27
Compared to previous month
Last year
-9.9%
509
Compared to previous year
JavaScript postgres interval tools
npm install pg-interval
const pgi = require('pg-interval');
pgi
objectpgi('00:01:00');
pgi('00:01:00').format('hh hours mm minutes ss seconds');
Returns "00 hours 01 minutes 00 seconds"
pgi('00:01:00').format();
Returns "00:01:00"
var p1 = pgi('00:01:00')
var p2 = pgi('00:01:00')
p1.add(p2)
p1.format();
Returns "00:02:00"
var p1 = pgi('00:01:00')
var p2 = pgi('00:01:00')
p1.subtract(p2);
p1.format();
Returns "00:00:00"
Work on the same instance of pgi object. Multiplication will change original p1 value.
var p1 = pgi('00:10:00').multiply(2);
p1.format();
Returns "00:20:00"
If you need new instance of pgi object, you can create it by your self or by passing second argument to multiply method.
var p1 = pgi('00:10:00');
var p2 = p1.multiply(2, true);
and now
p1.format();
Returns "00:10:00"
but
p2.format();
Returns "00:20:00"
Calculates difference between two pgi objects;
var interval1 = pgi('10:10:00');
var interval2 = pgi('10:20:00');
var pDiff = interval2.diff(interval1);
pDiff
will be new pgi instance.
pDiff.format('hh:mm');
Returns 00:10
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
29 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More