UtilitiesDurationGetting started

Getting started

Ever wanted to read milleseconds properly? This module is used to convert milleseconds into a human-readable string, and vice versa.

Installation

npm install @aezen/duration

Features

  • Written with TypeScript and ES Module.
  • Easy to use and understand.
  • Supports more time units: decades, centuries, megayear, gigayear, and terayear.
  • Added more duration formatter functions.
  • Uses bignumber.js to handle large numbers when converting.
  • Lightweight and easy-to-use.

Prerequisites

Knowledge

You must know how to use JavaScript or TypeScript, or how to code in general. It is unlikely that you will get help from using this module by making a new issue.

Node version

It is highly recommended to use the latest verion of node.

ECMAScript

This package is written in ES module, meaning your project must also use ES module in order to use this.

WARNING

Please ensure strict adherence to the prerequisites outlined for this module. Following these guidelines is essential for optimal functionality and compatibility.

Last updated on