object-query-string
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "object-query-string", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Stringify objects as URL Query Strings, a lightweight mock of jQuery.param without any dependencies!", | ||
@@ -16,4 +16,6 @@ "author": "ΔO - David Obdržálek <david@deltazero.cz>", | ||
"querystring", | ||
"query-string", | ||
"stringify", | ||
"object" | ||
"object", | ||
"url" | ||
], | ||
@@ -20,0 +22,0 @@ "repository": "deltazero-cz/node-object-string-query", |
@@ -11,6 +11,6 @@ # Object Query String | ||
// TypeScript | ||
import { queryString } from './index'; | ||
import { queryString } from 'object-query-string'; | ||
// Node.js | ||
const { queryString } = require("./index"); | ||
const { queryString } = require("object-query-string"); | ||
@@ -34,4 +34,18 @@ const query = queryString({ | ||
### Options | ||
```javascript | ||
// queryString(params : string, options : object|undefined) | ||
// default options | ||
queryString(params, { | ||
separator: '&', // string | ||
encode: encodeURIComponent, // function(string) : string | ||
encodeBrackets: false, // foo[baz]=1 or foo%5Bbaz%5D=1 | ||
}); | ||
``` | ||
----- | ||
Inspired by [jQuery](https://jquery.com)! | ||
Inspired by [jQuery](https://jquery.com)'s param! |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11406
49