# querystring-number

> 1. 极小 gzip 0.3k 2. 可以选择性的将 string 转为 number 3. 若 string 转为 number 之后，和原来的值有差异，则继续使用 string，如位数超过 double 的最大长度

Latest version **1.1.7** (published 2021-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install querystring-number
pnpm add querystring-number
yarn add querystring-number
bun add querystring-number
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2021-10-11 |
| First published | 2019-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | ymblender |

## Links

- npm: https://www.npmjs.com/package/querystring-number
- Repository: https://github.com/ymzuiku/querystring-number
- Homepage: https://github.com/ymzuiku/querystring-number#readme
- Issues: https://github.com/ymzuiku/querystring-number/issues
- npm.io page: https://npm.io/package/querystring-number

## Recent versions

- 1.1.7 (latest) — 2021-10-11
- 1.1.6 — 2021-10-11
- 1.1.5 — 2021-10-11
- 1.1.4 — 2021-10-11
- 1.1.3 — 2021-10-11
- 1.1.2 — 2021-10-11
- 1.1.1 — 2021-08-31
- 1.1.0 — 2021-08-25
- 1.0.9 — 2021-07-30
- 1.0.8 — 2020-03-15
- 1.0.7 — 2019-12-06
- 1.0.6 — 2019-09-28
- 1.0.5 — 2019-09-28
- 1.0.4 — 2019-09-28
- 1.0.3 — 2019-09-28
- … 2 more at https://npm.io/package/querystring-number/versions

## README

# querystring-number

1. 极小 gzip 0.3k
2. 可以选择性的将 string 转为 number
3. 若 string 转为 number 之后，和原来的值有差异，则继续使用 string，如位数超过 double 的最大长度

```js
import * as querystring from "querystring-number";

querystring.parse("?index=123"); // {index: 123}
querystring.parse("?index=123", false); // {index: '123'}
querystring.parser("?index=12345677890123456789"); // {index: '12345677890123456789'}
querystring.stringify({ index: 123 }); // 'index=123'
```

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