Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaid/readable-ms
Converts a milliseconds value into a human-readable string.
https://github.com/jaid/readable-ms
convert humanize lib library milliseconds ms string stringify util utility
Last synced: 8 days ago
JSON representation
Converts a milliseconds value into a human-readable string.
- Host: GitHub
- URL: https://github.com/jaid/readable-ms
- Owner: Jaid
- License: mit
- Created: 2019-08-01T17:17:15.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T00:48:06.000Z (almost 2 years ago)
- Last Synced: 2024-12-11T02:07:58.256Z (23 days ago)
- Topics: convert, humanize, lib, library, milliseconds, ms, string, stringify, util, utility
- Language: JavaScript
- Homepage: https://github.com/Jaid/readable-ms
- Size: 5.64 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license.txt
Awesome Lists containing this project
README
# readable-ms
**Converts a milliseconds value into a human-readable string.**
## Installation
```bash
npm install --save readable-ms@^3.0.0
``````bash
yarn add readable-ms@^3.0.0
```
(if [configured properly](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-npm-for-use-with-github-packages))```bash
npm install --save @jaid/readable-ms@^3.0.0
```## Example
```javascript
import readableMs from "readable-ms"const result = readableMs(3021)
```Variable `result` will be:
```javascript
"3s 21ms"
```## Development
Setting up:
```bash
git clone [email protected]:jaid/readable-ms.git
cd readable-ms
npm install
```
Testing:
```bash
npm run test:dev
```
Testing in production environment:
```bash
npm run test
```## License
[MIT License](https://raw.githubusercontent.com/jaid/readable-ms/master/license.txt)
Copyright © 2020, Jaid \ (https://github.com/jaid)