Socket
Socket
Sign inDemoInstall

build-url

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-url - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

package.json
{
"name": "build-url",
"version": "1.0.7",
"version": "1.0.8",
"description": "A small library that builds a URL given it's components",

@@ -5,0 +5,0 @@ "main": "./dist/build-url.js",

@@ -97,4 +97,33 @@ # build-url

If you only want the query string, path, hash, or any combination of the three you can skip the URL parameter or pass in an empty string or null:
```
buildUrl('', {
queryParams: {
foo: 'bar',
bar: 'baz'
}
});
// returns ?foo=bar&bar=baz
buildUrl(null, {
queryParams: {
foo: 'bar',
bar: 'baz'
}
});
// returns ?foo=bar&bar=baz
buildUrl({
queryParams: {
foo: 'bar',
bar: 'baz'
}
});
```
## License
This is licensed under an MIT License. [See details](LICENSE)
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