Converts a milliseconds value into a human-readable string.
npm install --save readable-ms@^3.0.0yarn add readable-ms@^3.0.0
(if configured properly)
npm install --save @jaid/readable-ms@^3.0.0import readableMs from "readable-ms"
const result = readableMs(3021)Variable result will be:
"3s 21ms"Setting up:
git clone [email protected]:jaid/readable-ms.git
cd readable-ms
npm installTesting:
npm run test:devTesting in production environment:
npm run testMIT License
Copyright © 2020, Jaid <[email protected]> (https://github.com/jaid)