Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ Licensed under the MIT License (text identical to the above).

---

jquery-bbq (`lib/deparam.js` is adapted from Ben Alman's jquery-bbq)
jquery-bbq (the original `lib/deparam.js`, replaced in v1.1.0 by an
original shim over qs that preserves jquery-bbq's behavioral conventions
and test fixtures)
Copyright (c) 2013 AceMetrix
Copyright (c) 2010 "Cowboy" Ben Alman

Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# node-qs-serialization

Serialization and deserialization of Javascript objects for use in the querystring part of an url.
Slightly modified from jQuery's $.param function [$.param method](http://api.jquery.com/jQuery.param/) and Ben Alman's [jquery-bbq](https://github.com/cowboy/jquery-bbq/) with license info for both included.

`deparam` delegates parsing to [`qs`](https://github.com/ljharb/qs) and adds an ISO-8859 percent-encoding fallback, type coercion, and per-parameter depth and prototype-key rejection on top. `param` is the original pure-JS jQuery-traditional serializer.
`param` is adapted from jQuery's [`$.param`](http://api.jquery.com/jQuery.param/) — the original pure-JS jQuery-traditional serializer, unchanged since 2014.

`deparam` is an original shim over [`qs`](https://github.com/ljharb/qs) whose behavioral contract was originally derived from Ben Alman's [jquery-bbq](https://github.com/cowboy/jquery-bbq/) — same coercion conventions, same test fixtures, same ISO-8859 percent-encoding fallback. The code was rewritten in v1.1.0; the contract was preserved.

param serializes any Javascript object to a valid querystring.
deparam deserializes a provided querystring.
Expand Down Expand Up @@ -56,4 +57,4 @@ See [SECURITY.md](./SECURITY.md) for disclosure policy.

# License

MIT — see [LICENSE](./LICENSE) for full text including the attributions to jQuery and jquery-bbq from which `param` and `deparam` are adapted.
MIT — see [LICENSE](./LICENSE) for full text including the attributions to jQuery (from which `param` is adapted) and jquery-bbq (whose behavioral conventions `deparam` preserves).
Loading