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

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.5 to 1.0.6

2

bower.json

@@ -43,3 +43,3 @@ {

],
"version": "1.0.5"
"version": "1.0.6"
}
{
"name": "build-url",
"version": "1.0.5",
"version": "1.0.6",
"description": "A small library that builds a URL given it's components",

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

@@ -7,15 +7,59 @@ # build-url

## Usage
## Installation
To install with bower:
```
bower install build-url --save
```
To install with npm:
```
npm install build-url --save
```
If using node:
## Usage
Usage in the browser:
```
<script src="../path/to/lib/build-url.js"></script>
<script>
buildUrl('http://example.com', {
path: 'about',
hash: 'contact',
queryParams: {
foo: bar,
bar: ['foo', 'bar']
}
});
</script>
```
Usage with ES6 modules:
```
import buildUrl from '../path/to/lib/build-url';
buildUrl('http://example.com', {
path: 'about',
hash: 'contact',
queryParams: {
foo: bar,
bar: ['foo', 'bar']
}
});
```
Usage with node:
```
var buildUrl = require('build-url');
buildUrl('http://example.com', {
path: 'about'
path: 'about',
hash: 'contact',
queryParams: {
foo: bar,
bar: ['foo', 'bar']
}
});

@@ -22,0 +66,0 @@ ```

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