awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
vercel avatar

vercel/ms

0
View on GitHub↗
5,536 stars·322 forks·TypeScript·MIT·11 viewsnpmjs.com/ms↗

Ms

This is a JavaScript time conversion library designed to format millisecond integers as human-readable durations and parse unit-based strings back into total milliseconds. It serves as a utility for managing the transition between machine-readable durations and text representations.

The library provides bidirectional mapping, allowing for the conversion of raw numbers to strings and the parsing of strings containing units like days, hours, and minutes back into numeric millisecond counts. It supports both abbreviated and full written-out time formats.

Features

  • Time Conversion Utilities - A utility for transforming strings containing days, hours, and minutes into a total millisecond count.
  • Human-Readable Time Delta Formatters - Converts millisecond integers into human-readable duration strings using abbreviated or full formats.
  • Duration Formatters - Acts as a formatter that turns large millisecond integers into abbreviated or full written-out time durations.
  • Date and Time Libraries - Provides a JavaScript utility library for parsing and formatting millisecond durations.
  • Unit Conversions - Utilizes a static lookup table to map time units to their millisecond equivalents for conversion calculations.
  • Duration String Parsers - Transforms human-readable strings containing time units into a total millisecond count.
  • Bidirectional Time Mappers - Implements paired logic to convert milliseconds to strings and strings back to milliseconds using a shared scale.
  • Iterative Remainder Formatting - Implements an iterative subtraction algorithm to break down milliseconds into a readable sequence of time units.
  • Regular Expression-Based Parsing - Uses regular expressions to extract numeric values and time unit identifiers from strings.
  • Date and Time Utilities - Converts various time formats to milliseconds.
  • Dates and Time - Parser and formatter for time duration strings.
  • Humanization Utilities - Tiny millisecond conversion utility.

Star history

Star history chart for vercel/msStar history chart for vercel/ms

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does vercel/ms do?

This is a JavaScript time conversion library designed to format millisecond integers as human-readable durations and parse unit-based strings back into total milliseconds. It serves as a utility for managing the transition between machine-readable durations and text representations.

What are the main features of vercel/ms?

The main features of vercel/ms are: Time Conversion Utilities, Human-Readable Time Delta Formatters, Duration Formatters, Date and Time Libraries, Unit Conversions, Duration String Parsers, Bidirectional Time Mappers, Iterative Remainder Formatting.

What are some open-source alternatives to vercel/ms?

Open-source alternatives to vercel/ms include: rauchg/ms.js — ms.js is a millisecond conversion library providing tools to format durations into text and parse human-readable time… iamkun/dayjs — Day.js is a lightweight utility for parsing, validating, and manipulating date objects. It provides a fluent,… hustcc/timeago.js — timeago.js is a JavaScript library that converts timestamps into human-readable relative time strings. It functions as… matthewyork/datetools — DateTools is a date manipulation library for iOS applications that provides utilities for date arithmetic, range… moment/luxon — Luxon is a JavaScript library for parsing, validating, manipulating, and formatting dates and times. It provides a… moment/moment — Moment is a JavaScript date manipulation library used for parsing, validating, manipulating, and formatting dates and…

Open-source alternatives to Ms

Similar open-source projects, ranked by how many features they share with Ms.
  • rauchg/ms.jsrauchg avatar

    rauchg/ms.js

    5,533View on GitHub↗

    ms.js is a millisecond conversion library providing tools to format durations into text and parse human-readable time strings back into numbers. It functions as a utility for translating numeric millisecond values into human-readable strings and converting time units such as days, hours, and minutes into numeric milliseconds. The project covers time parsing and formatting, enabling the translation of human-readable time units into millisecond values for application timeout management and duration unit conversion. It includes tools for transforming millisecond durations into both concise and l

    TypeScript
    View on GitHub↗5,533
  • iamkun/dayjsiamkun avatar

    iamkun/dayjs

    48,662View on GitHub↗

    Day.js is a lightweight utility for parsing, validating, and manipulating date objects. It provides a fluent, chainable interface that allows for complex time calculations and transformations to be performed through a sequence of readable method calls. By utilizing an immutable wrapper pattern, the library ensures data integrity by creating new instances for every operation rather than modifying existing objects. The project is distinguished by a minimalist core abstraction that maintains a small footprint by offloading non-essential features to an optional, modular plugin system. This archit

    JavaScriptdatedate-formattingdatetime
    View on GitHub↗48,662
  • hustcc/timeago.jshustcc avatar

    hustcc/timeago.js

    5,376View on GitHub↗

    timeago.js is a JavaScript library that converts timestamps into human-readable relative time strings. It functions as an internationalized date library that transforms static date and time data into descriptive statements of elapsed time. The project provides a dynamic time updater that automatically refreshes relative time labels on a webpage at regular intervals. It supports multilingual date localization, allowing time-elapsed statements to be translated into various languages using built-in or custom locale settings.

    TypeScript
    View on GitHub↗5,376
  • matthewyork/datetoolsMatthewYork avatar

    MatthewYork/DateTools

    7,186View on GitHub↗

    DateTools is a date manipulation library for iOS applications that provides utilities for date arithmetic, range management, and relative time formatting. It functions as a set of tools to shift dates by specific units, calculate durations between timestamps, and convert dates into localized, human-readable strings. The library specializes in the analysis of time spans, offering systems to define, compare, and organize overlapping or sequential time periods. It includes logic to determine chronological relationships, such as whether dates fall within specific windows or how different time per

    Objective-C
    View on GitHub↗7,186
See all 30 alternatives to Ms→