Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

build-url-query

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-url-query - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

4

package.json
{
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc