forked from enviPath/enviPy
Current Dev State
This commit is contained in:
37
static/js/ketcher2/node_modules/url-trim/README.md
generated
vendored
Normal file
37
static/js/ketcher2/node_modules/url-trim/README.md
generated
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
# url-trim
|
||||
|
||||
[](http://github.com/badges/stability-badges)
|
||||
|
||||
Trims query and hash parameters off of a URL.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
npm install url-trim --save
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var urlTrim = require('url-trim')
|
||||
|
||||
urlTrim('http://localhost:9966/?foo=bar')
|
||||
//=> 'http://localhost:9966/'
|
||||
|
||||
urlTrim('/path/foo?blah#bar')
|
||||
//=> '/path/foo'
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
[](https://www.npmjs.com/package/url-trim)
|
||||
|
||||
#### `trimmed = trim([url])`
|
||||
|
||||
Trims the query string and hash parameters from a URL.
|
||||
|
||||
If `url` is empty or not a string, this method returns an empty string.
|
||||
|
||||
## License
|
||||
|
||||
MIT, see [LICENSE.md](http://github.com/Jam3/url-trim/blob/master/LICENSE.md) for details.
|
||||
Reference in New Issue
Block a user