build-url-query
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "build-url-query", | ||
"version": "1.0.0", | ||
"description": "Build a query string from key-value pairs", | ||
"version": "2.0.0", | ||
"description": "(Deprecated) Build a query string from key-value pairs", | ||
"author": "Federico Brigante <npm@bfred.it> (https://twitter.com/bfred_it)", | ||
"license": "MIT" | ||
} |
# build-url-query | ||
> Build a query string from key-value pairs | ||
> (Deprecated) Build a query string from key-value pairs | ||
## Install | ||
```sh | ||
npm i --save build-url-query | ||
``` | ||
## Usage | ||
```js | ||
import buildUrlQuery from 'build-url-query'; | ||
var parameters = { | ||
q: 'Jet fuel steel beams', | ||
hl: 'en' | ||
} | ||
var url = 'https://www.google.com/' + buildUrlQuery(parameters); | ||
// => 'https://www.google.com/?q=Jet%20fuel%20steel%20beams&hl=en' | ||
``` | ||
Use [query-string](https://github.com/sindresorhus/query-string) instead. |
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
972
5