Gathering detailed insights and metrics for @vates/parse-duration
Gathering detailed insights and metrics for @vates/parse-duration
Gathering detailed insights and metrics for @vates/parse-duration
Gathering detailed insights and metrics for @vates/parse-duration
npm install @vates/parse-duration
Typescript
Module System
Min. Node Version
Node Version
NPM Version
61.3
Supply Chain
69.7
Quality
82.6
Maintenance
100
Vulnerability
100
License
xo-lite-v0.6.0
Published on 29 Nov 2024
xo-lite-v0.5.0
Published on 31 Oct 2024
xo-lite-v0.4.0
Published on 30 Sept 2024
xo-lite-v0.2.7
Published on 31 Jul 2024
xo-lite-v0.2.3
Published on 31 May 2024
xo-lite-v0.2.2
Published on 30 Apr 2024
JavaScript (86.66%)
Vue (8.1%)
TypeScript (3.67%)
SCSS (0.41%)
CSS (0.36%)
Handlebars (0.35%)
Smarty (0.24%)
Pug (0.12%)
Shell (0.09%)
HTML (0.02%)
Total Downloads
3,609
Last Day
1
Last Week
28
Last Month
152
Last Year
997
805 Stars
15,821 Commits
268 Forks
49 Watching
242 Branches
100 Contributors
Latest Version
0.1.1
Package Id
@vates/parse-duration@0.1.1
Size
1.10 kB
NPM Version
7.7.6
Node Version
15.14.0
Publised On
05 May 2021
Cumulative downloads
Total Downloads
Last day
-95.7%
1
Compared to previous day
Last week
-33.3%
28
Compared to previous week
Last month
111.1%
152
Compared to previous month
Last year
31.4%
997
Compared to previous year
1
Small wrapper around ms to parse a duration
Installation of the npm package:
> npm install --save @vates/parse-duration
ms
without magic: always parse a duration and throws if invalid.
1import { parseDuration } from '@vates/parse-duration' 2 3parseDuration('2 days') 4// 172800000 5 6parseDuration(172800000) 7// 172800000 8 9parseDuration(undefined) 10// throws TypeError('not a valid duration: undefined')
Contributions are very welcomed, either on the documentation or on the code.
You may:
No vulnerabilities found.
Reason
30 commit(s) and 14 issue activity found in the last 90 days -- score normalized to 10
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
Project has not signed or included provenance with any releases.
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
29 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
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