Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

# 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

```bash
npm install --save readable-ms@^3.0.0
```

readable-ms on Yarn

```bash
yarn add readable-ms@^3.0.0
```

@jaid/readable-ms on GitHub Packages
(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)