Skip to content

Jaid/readable-ms

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)