https://github.com/grimen/js-humanizer
A human/developer friendly value humanizer - for JavaScript/Node.
https://github.com/grimen/js-humanizer
data debug debugging format formatting humanize humanizer log logging print printing value
Last synced: 3 months ago
JSON representation
A human/developer friendly value humanizer - for JavaScript/Node.
- Host: GitHub
- URL: https://github.com/grimen/js-humanizer
- Owner: grimen
- License: mit
- Created: 2019-10-15T02:36:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:48:38.000Z (over 2 years ago)
- Last Synced: 2025-01-12T06:11:09.730Z (4 months ago)
- Topics: data, debug, debugging, format, formatting, humanize, humanizer, log, logging, print, printing, value
- Language: JavaScript
- Homepage: https://npmjs.com/package/@grimen/humanizer
- Size: 367 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.md
Awesome Lists containing this project
README
# `js-humanizer` [](https://badge.fury.io/js/%40grimen%2Fhumanizer) [](https://travis-ci.com/grimen/js-humanizer) [](https://codecov.io/gh/grimen/js-humanizer)
*A developer friendly data/value humanizer for debugging/logging - for JavaScript/Node.*
## Introduction
*TODO*
## Install
Install using **npm**:
```bash
$ npm install @grimen/humanizer
```Install using **yarn**:
```bash
$ yarn add @grimen/humanizer
```## Use
Very basic `bytesize` **[example](https://github.com/grimen/js-humanizer/tree/master/examples/bytesize.js)**:
```javascript
const { bytesize } = require('@grimen/humanizer')// TODO: add example
```
Very basic `duration` **[example](https://github.com/grimen/js-humanizer/tree/master/examples/duration.js)**:
```javascript
const { duration } = require('@grimen/humanizer')// TODO: add example
```
## Test
Clone down source code:
```sh
$ make install
```Run **colorful tests** using **jest**:
```sh
$ make test
```## Related
- [**`python-humanizer`**](https://github.com/grimen/python-humanizer) - *"A developer friendly data/value humanizer for debugging/logging - for Python"*
## About
This project was mainly initiated - in lack of solid existing alternatives - to be used at our work at **[Markable.ai](https://markable.ai)** to have common code conventions between various programming environments where **Node.js** (for I/O heavy operations) is heavily used.
## License
Released under the MIT license.