# parse-thousands

> Parse thousands with custom separator: '1,000,000.1' => 1000000.1

Latest version **0.1.0** (published 2017-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse-thousands
pnpm add parse-thousands
yarn add parse-thousands
bun add parse-thousands
```

## 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.1.0 |
| Published | 2017-04-17 |
| First published | 2017-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vladimir Rodkin |
| Maintainers | vovanr |
| Keywords | parse, separate, thousands, number |

## Links

- npm: https://www.npmjs.com/package/parse-thousands
- Repository: https://github.com/vovanr/parse-thousands
- Homepage: https://github.com/VovanR/parse-thousands#readme
- Issues: https://github.com/VovanR/parse-thousands/issues
- npm.io page: https://npm.io/package/parse-thousands

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2017-04-17

## README

# parse-thousands

[![Commitizen friendly][commitizen-image]][commitizen-url]
[![XO code style][codestyle-image]][codestyle-url]

[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Coveralls Status][coveralls-image]][coveralls-url]
[![Dependency Status][depstat-image]][depstat-url]
[![DevDependency Status][depstat-dev-image]][depstat-dev-url]

> Parse thousands with custom separator: '1,000,000.1' => 1000000.1

Demo: [vovanr.github.io/parse-thousands][demo]

## Install

```
npm install --save parse-thousands
```

## Usage

```js
var parseThousands = require('parse-thousands');

parseThousands('1 000');
//=> 1000

parseThousands('5000');
//=> 5000

parseThousands('1`000`000');
//=> 1000000

parseThousands("10'000");
//=> 10000

parseThousands('-100 000');
//=> -100000

parseThousands('10 000.0001')
//=> 10000.0001

parseThousands();
//=> ''
```

## License
MIT © [Vladimir Rodkin](https://github.com/VovanR)

[demo]: http://vovanr.github.io/parse-thousands

[commitizen-url]: http://commitizen.github.io/cz-cli/
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square

[codestyle-url]: https://github.com/sindresorhus/xo
[codestyle-image]: https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square

[npm-url]: https://npmjs.org/package/parse-thousands
[npm-image]: http://img.shields.io/npm/v/parse-thousands.svg?style=flat-square

[travis-url]: https://travis-ci.org/VovanR/parse-thousands
[travis-image]: http://img.shields.io/travis/VovanR/parse-thousands.svg?style=flat-square

[coveralls-url]: https://coveralls.io/r/VovanR/parse-thousands
[coveralls-image]: http://img.shields.io/coveralls/VovanR/parse-thousands.svg?style=flat-square

[depstat-url]: https://david-dm.org/VovanR/parse-thousands
[depstat-image]: https://david-dm.org/VovanR/parse-thousands.svg?style=flat-square

[depstat-dev-url]: https://david-dm.org/VovanR/parse-thousands
[depstat-dev-image]: https://david-dm.org/VovanR/parse-thousands/dev-status.svg?style=flat-square

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