qs-lite
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Repository

Documentation

See also

BSD License

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    517
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    517
  • 0.0.3
    135
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i qs-lite

Weekly Downloads

561

Version

0.0.4

License

BSD

Unpacked Size

6.62 kB

Total Files

7

Last publish

Collaborators

  • kawanet