querystring-number
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

querystring-number

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

Readme

Keywords

none

Package Sidebar

Install

npm i querystring-number

Weekly Downloads

1

Version

1.1.7

License

MIT

Unpacked Size

6.69 kB

Total Files

6

Last publish

Collaborators

  • ymblender