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
The global orchestration solution to manage and backup XCP-ng and XenServer.
npm install @vates/parse-duration
Typescript
Module System
Min. Node Version
Node Version
NPM Version
61.2
Supply Chain
69.7
Quality
82.7
Maintenance
100
Vulnerability
100
License
xo-lite-v0.12.0
Updated on Jun 30, 2025
xo-lite-v0.11.0
Updated on May 27, 2025
xo-lite-v0.10.1
Updated on May 07, 2025
xo-lite-v0.10.0
Updated on Apr 30, 2025
xo-lite-v0.9.1
Updated on Apr 02, 2025
xo-lite-v0.9.0
Updated on Mar 31, 2025
JavaScript (76.77%)
Vue (12.23%)
TypeScript (9.65%)
SCSS (0.36%)
Handlebars (0.31%)
CSS (0.29%)
Smarty (0.21%)
Pug (0.1%)
Shell (0.08%)
HTML (0.02%)
Total Downloads
4,163
Last Day
1
Last Week
43
Last Month
96
Last Year
1,252
NOASSERTION License
866 Stars
16,334 Commits
287 Forks
49 Watchers
279 Branches
114 Contributors
Updated on Jul 02, 2025
Minified
Minified + Gzipped
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
Published on
May 05, 2021
Cumulative downloads
Total Downloads
Last Day
-50%
1
Compared to previous day
Last Week
152.9%
43
Compared to previous week
Last Month
-7.7%
96
Compared to previous month
Last Year
75.1%
1,252
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
no dangerous workflow patterns detected
Reason
all changesets reviewed
Reason
30 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10
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
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
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