Skip to content
Code Recycle

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

Get it free

Every claim on this page is refundable if it is untrue — refund policy.

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 yet

No 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.

Open an issue

Sign in to confirm — weight comes from verified usage, not vote count.

0 open · 0 answered · 0 fixed · 1 said it worked

04Trust Passport

Full passport →
–/100

0/0 automated components pass. An automated score is never a security guarantee.

! Not verifiedreviewed Sep 19, 2026 · re-verification due Dec 18, 2026
  • 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.

VersionChannelReleasedNotes
1.0.1stableSep 19, 2026Accepts a space before the unit ("2 days" now parses); npm test runs plain node --test, which Node 26 requires. From 364c24fa87be.
1.0.0stableSep 19, 2026First release, from a3c237e97f52.