Skip to content

Jaid/readable-ms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

80842ea · Jun 14, 2022
May 14, 2021
Feb 1, 2020
Jan 3, 2021
Jun 14, 2022
Sep 17, 2021
Aug 1, 2019
Dec 21, 2019
Jan 20, 2020
Sep 17, 2021
Sep 13, 2020
Jun 14, 2022
May 14, 2021
Jun 14, 2022
Jun 14, 2022
Jun 14, 2022
Oct 1, 2020
Sep 17, 2021

Repository files navigation

readable-ms

License Sponsor readable-ms
Build status Commits since v3.0.0 Last commit Issues
Latest version on npm Dependents Downloads

Converts a milliseconds value into a human-readable string.

Installation

readable-ms on npm

npm install --save readable-ms@^3.0.0

readable-ms on Yarn

yarn add readable-ms@^3.0.0

@jaid/readable-ms on GitHub Packages
(if configured properly)

npm install --save @jaid/readable-ms@^3.0.0

Example

import readableMs from "readable-ms"

const result = readableMs(3021)

Variable result will be:

"3s 21ms"

Development

Setting up:

git clone git@github.com:jaid/readable-ms.git
cd readable-ms
npm install

Testing:

npm run test:dev

Testing in production environment:

npm run test

License

MIT License
Copyright © 2020, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)