forked from enviPath/enviPy
Current Dev State
This commit is contained in:
21
static/js/ketcher2/node_modules/url-trim/LICENSE.md
generated
vendored
Normal file
21
static/js/ketcher2/node_modules/url-trim/LICENSE.md
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
Copyright (c) 2015 Jam3
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||
OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
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.
|
||||
13
static/js/ketcher2/node_modules/url-trim/index.js
generated
vendored
Normal file
13
static/js/ketcher2/node_modules/url-trim/index.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
var urlLib = require('url')
|
||||
|
||||
module.exports = stripUrl
|
||||
function stripUrl (url) {
|
||||
if (!url) return ''
|
||||
var obj = urlLib.parse(url)
|
||||
obj.search = ''
|
||||
obj.hash = ''
|
||||
obj.query = ''
|
||||
obj.pathname = (obj.pathname || '').replace(/\/+$/, '/')
|
||||
url = urlLib.format(obj)
|
||||
return url || '/'
|
||||
}
|
||||
70
static/js/ketcher2/node_modules/url-trim/package.json
generated
vendored
Normal file
70
static/js/ketcher2/node_modules/url-trim/package.json
generated
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
{
|
||||
"_from": "url-trim@^1.0.0",
|
||||
"_id": "url-trim@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-QAV+LxZLiOXaynJp2kfm0d2Detw=",
|
||||
"_location": "/url-trim",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "url-trim@^1.0.0",
|
||||
"name": "url-trim",
|
||||
"escapedName": "url-trim",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/budo",
|
||||
"/garnish"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/url-trim/-/url-trim-1.0.0.tgz",
|
||||
"_shasum": "40057e2f164b88e5daca7269da47e6d1dd837adc",
|
||||
"_spec": "url-trim@^1.0.0",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/budo",
|
||||
"author": {
|
||||
"name": "Matt DesLauriers",
|
||||
"email": "dave.des@gmail.com",
|
||||
"url": "https://github.com/mattdesl"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Jam3/url-trim/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "trims query and hash parameters off a URL",
|
||||
"devDependencies": {
|
||||
"faucet": "0.0.1",
|
||||
"standard": "^5.3.1",
|
||||
"tape": "^4.2.0"
|
||||
},
|
||||
"homepage": "https://github.com/Jam3/url-trim",
|
||||
"keywords": [
|
||||
"url",
|
||||
"trim",
|
||||
"strip",
|
||||
"path",
|
||||
"name",
|
||||
"pathname",
|
||||
"param",
|
||||
"params",
|
||||
"query",
|
||||
"hash",
|
||||
"querystring",
|
||||
"string",
|
||||
"qs"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "url-trim",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Jam3/url-trim.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js | faucet"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user