Comparing version 1.0.5 to 1.0.6
@@ -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 @@ ``` |
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
11033
100