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
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
xo-lite-v0.8.0
Updated on Feb 27, 2025
xo-lite-v0.7.1
Updated on Feb 04, 2025
JavaScript (80.46%)
Vue (10.98%)
TypeScript (7.13%)
SCSS (0.38%)
Handlebars (0.32%)
CSS (0.31%)
Smarty (0.22%)
Pug (0.11%)
Shell (0.08%)
HTML (0.02%)
Total Downloads
4,088
Last Day
3
Last Week
18
Last Month
96
Last Year
1,207
NOASSERTION License
854 Stars
16,127 Commits
282 Forks
47 Watchers
274 Branches
107 Contributors
Updated on May 08, 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%
3
Compared to previous day
Last Week
-18.2%
18
Compared to previous week
Last Month
6.7%
96
Compared to previous month
Last Year
65.1%
1,207
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 11 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
35 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-04-28
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