Skip to content

ms #349

@ofershap

Description

@ofershap

ms has 255M weekly downloads and is a dependency of debug, jsonwebtoken, mongoose, and others. It works fine but has a few gaps:

  • no native TypeScript types (needs @types/ms)
  • no ESM exports
  • returns undefined on invalid input instead of throwing
  • can't parse compound durations like "1h 30m"

ms-tiny is a drop-in replacement that addresses these. 833 bytes gzipped, zero deps, ships ESM + CJS.

npmgraph comparison

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions