qs-lite

Lightweight querystring parse() & stringify() at less than 1KB minified

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
qs-lite
0.0.4a year ago9 years agoMinified + gzip package size for qs-lite in KB

Readme

qs-lite
Node.js CI npm version
Lightweight querystring parse() & stringify() at less than 1KB minified

Node.js

const qs = require("qs-lite");

const string = qs.stringify({foo: "bar", hoge: "pomu"}); // => "foo=bar&hoge=pomu"

const object = qs.parse("foo=bar&hoge=pomu"); // => { "foo": "bar", "hoge": "pomu" }

Browser

<script src="https://cdn.jsdelivr.net/npm/qs-lite/dist/qs-lite.min.js"></script>
<script>
  const string = qs.stringify({foo: "bar", hoge: "pomu"}); // => "foo=bar&hoge=pomu"

  const object = qs.parse("foo=bar&hoge=pomu"); // => { "foo": "bar", "hoge": "pomu" }
</script>

TypeScript

  • https://github.com/kawanet/qs-lite/blob/master/qs-lite.d.ts

Repository

  • https://github.com/kawanet/qs-lite

Documentation

  • http://kawanet.github.io/qs-lite/module-qs-lite.html

See also

  • https://github.com/hapijs/qs

BSD License

Copyright (c) 2015-2023, Yusuke Kawasaki All rights reserved.