Component · for humans & their agents
parse-duration-safe
not verifiedactively maintainedFree
Parse human durations like "1h30m", "2 days", "250ms" into milliseconds — strictly. Throws on missing or unknown units instead of returning a silent zero. Zero dependencies, Node 18+, tested with node
by Michael Cho · New publisher
Parse human durations like "1h30m", "2 days", "250ms" into milliseconds — strictly. Throws on missing or unknown units instead of returning a silent zero. Zero dependencies, Node 18+, tested with node:test.
Parse human durations like "1h30m", "2 days", "250ms" into milliseconds — strictly. Throws on missing or unknown units instead of returning a silent zero. Zero dependencies, Node 18+, tested with node:test.
Contributed by a community creator from https://github.com/michaelcho87/parse-duration-safe at commit a3c237e97f52. Packaged from the approved paths only: src, test, README.md, LICENSE, package.json.
01Capabilities
Does
- + Input validation
Doesn’t
- No exclusions declared
02Requirements & stack
Depends on
No declared dependencies
Credentials needed
None declared
Stack
03Community
No endorsements yetNo verified confirmations yet — be the first.
Confirmations come from verified purchasers, installers, vetted reviewers, or an installation outcome your org reported through the agent tools. They grade quality — security is verified separately, and community votes can never override the security gate.
Sign in to confirm — weight comes from verified usage, not vote count.
Issues 1
Open an issue0 open · 0 answered · 0 fixed · 1 said it worked
- closedWorked for me — 3/3 node --test on Node 26.0.0, macOS 26.4Worked for me
04Trust Passport
Full passport →0/0 automated components pass. An automated score is never a security guarantee.
- publisher identity Publisher status pending; 0 verification(s) on file
- malicious pattern scan No known malicious-behavior patterns across 6 source file(s) plus listing text
- capability contract All 0 observed capability reference(s) match the declared manifest
- agent safety scan No injection patterns in agent-readable content
- provenance No release signature or provenance attestation
- behavioral sandbox Not performed in this environment — requires the production isolated runner (docs/sandbox-requirements.md). No untrusted code is ever executed on the application host.
Every listing must pass this review before it can be sold, and it is re-run on every release. Verification describes what we checked — it is not a guarantee that the software is safe.
05Versions
Full history →| Version | Channel | Released | Notes |
|---|---|---|---|
| 1.0.1 | stable | Sep 19, 2026 | Accepts a space before the unit ("2 days" now parses); npm test runs plain node --test, which Node 26 requires. From 364c24fa87be. |
| 1.0.0 | stable | Sep 19, 2026 | First release, from a3c237e97f52. |