Skip to content

kawanet/qs-lite

Repository files navigation

qs-lite

Node.js CI npm version gzip size

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

SYNOPSIS

import * as qs from "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" }

CommonJS

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-2024, Yusuke Kawasaki All rights reserved.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published