Comparing version 1.0.7 to 1.0.8
{ | ||
"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) |
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
14370
129