# gazzilion.js

> a tiny package to make numbers into consistently readable strings

Latest version **0.2.0** (published 2017-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install gazzilion.js
pnpm add gazzilion.js
yarn add gazzilion.js
bun add gazzilion.js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-09-27 |
| First published | 2017-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | lieldulev |
| Maintainers | lieldulev |

## Links

- npm: https://www.npmjs.com/package/gazzilion.js
- Repository: https://github.com/lieldulev/gazzilion.js
- Homepage: https://github.com/lieldulev/gazzilion.js#readme
- Issues: https://github.com/lieldulev/gazzilion.js/issues
- npm.io page: https://npm.io/package/gazzilion.js

## Recent versions

- 0.2.0 (latest) — 2017-09-27
- 0.1.3 — 2017-09-27

## README

# Gazzilion.js

[Gazzilion.js](http://lieldulev.github.com/gazzilion.js/ "Gazzilion.js") tries to solve the common problem of displaying the pretty or textual version for numbers (`103500` becomes `103.5K`) . You can force to a scale or let the magic methods to format numbers for you.

It takes numbers in javascript like ```21013``` and converts them to human readable strings for display like: 

* 21,013 
* 21K
* 21 thousand

It (properly!) extends the built-in Number object - making it easy to use.

## Works everywhere

Old node.js, new node.js and all browsers.

To install: `npm i gazzilion.js`

## Planned

* Multilingual support
* Support file size

## API

    Gazzilion.add_commas(21013); // "21,013"
    Gazzilion.M(315098123); // "315M"
    my_number = 8135432967;
    my_number.to_word(); // "8 billion"

Full API is available in [here](http://lieldulev.github.com/gazzilion.js/ "Gazzilion.js").

## Copyright
2012-7 © Liel Dulev

## MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

---
_Source: https://npm.io/package/gazzilion.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
