forked from enviPath/enviPy
Current Dev State
This commit is contained in:
21
static/js/ketcher2/node_modules/npm-install-package/LICENSE
generated
vendored
Normal file
21
static/js/ketcher2/node_modules/npm-install-package/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Yoshua Wuyts
|
||||
|
||||
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.
|
||||
56
static/js/ketcher2/node_modules/npm-install-package/README.md
generated
vendored
Normal file
56
static/js/ketcher2/node_modules/npm-install-package/README.md
generated
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
# npm-install-package
|
||||
[![NPM version][npm-image]][npm-url]
|
||||
[![build status][travis-image]][travis-url]
|
||||
[![Test coverage][codecov-image]][codecov-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
[![js-standard-style][standard-image]][standard-url]
|
||||
|
||||
Install an npm package.
|
||||
|
||||
## Installation
|
||||
```sh
|
||||
$ npm install npm-install-package
|
||||
```
|
||||
|
||||
## Usage
|
||||
```js
|
||||
var install = require('npm-install-package')
|
||||
|
||||
install('minimist', function (err) {
|
||||
if (err) throw err
|
||||
})
|
||||
```
|
||||
|
||||
With multiple installs, offline-first fetching and saving to dev dependencies:
|
||||
```js
|
||||
var install = require('npm-install-package')
|
||||
|
||||
var devDeps = [ 'map-limit', 'minimist', 'cliclopts' ]
|
||||
var opts = { saveDev: true, cache: true }
|
||||
|
||||
install(devDeps, opts, function (err) {
|
||||
if (err) throw err
|
||||
})
|
||||
```
|
||||
|
||||
## API
|
||||
### install(dependencies, options, cb)
|
||||
Install an array of dependencies. Opts can contain the following values:
|
||||
- __save__: save a value to `dependencies`. Defaults to `false`
|
||||
- __saveDev__: save a value to `devDependencies`. Defaults to `false`
|
||||
- __cache__: attempt to get packages from the local cache first. Defaults to `false`
|
||||
- __silent__: install packages silently without writing to stdout. Defaults to `false`
|
||||
|
||||
## License
|
||||
[MIT](https://tldrlegal.com/license/mit-license)
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/npm-install-package.svg?style=flat-square
|
||||
[npm-url]: https://npmjs.org/package/npm-install-package
|
||||
[travis-image]: https://img.shields.io/travis/yoshuawuyts/npm-install-package/master.svg?style=flat-square
|
||||
[travis-url]: https://travis-ci.org/yoshuawuyts/npm-install-package
|
||||
[codecov-image]: https://img.shields.io/codecov/c/github/yoshuawuyts/npm-install-package/master.svg?style=flat-square
|
||||
[codecov-url]: https://codecov.io/github/yoshuawuyts/npm-install-package
|
||||
[downloads-image]: http://img.shields.io/npm/dm/npm-install-package.svg?style=flat-square
|
||||
[downloads-url]: https://npmjs.org/package/npm-install-package
|
||||
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
|
||||
[standard-url]: https://github.com/feross/standard
|
||||
35
static/js/ketcher2/node_modules/npm-install-package/index.js
generated
vendored
Normal file
35
static/js/ketcher2/node_modules/npm-install-package/index.js
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
var exec = require('child_process').exec
|
||||
|
||||
module.exports = npmInstallPackage
|
||||
|
||||
// Install an npm package
|
||||
// ([str]|str, obj, obj, fn) -> null
|
||||
function npmInstallPackage (deps, opts, cb) {
|
||||
if (!cb) {
|
||||
cb = opts
|
||||
opts = {}
|
||||
}
|
||||
deps = Array.isArray(deps) ? deps : [ deps ]
|
||||
opts = opts || opts
|
||||
cb = cb || noop
|
||||
|
||||
var args = []
|
||||
if (opts.save) args.push('-S')
|
||||
if (opts.saveDev) args.push('-D')
|
||||
if (opts.global) args.push('-g')
|
||||
if (opts.cache) args.push('--cache-min Infinity')
|
||||
|
||||
if (opts.silent === false) {
|
||||
deps.forEach(function (dep) {
|
||||
process.stdout.write('pkg: ' + dep + '\n')
|
||||
})
|
||||
}
|
||||
|
||||
var cliArgs = ['npm i'].concat(args, deps).join(' ')
|
||||
exec(cliArgs, function (err, name) {
|
||||
if (err) return cb(err)
|
||||
cb()
|
||||
})
|
||||
}
|
||||
|
||||
function noop () {}
|
||||
76
static/js/ketcher2/node_modules/npm-install-package/package.json
generated
vendored
Normal file
76
static/js/ketcher2/node_modules/npm-install-package/package.json
generated
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
{
|
||||
"_from": "npm-install-package@~2.1.0",
|
||||
"_id": "npm-install-package@2.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-1+/jz816sAYUuJbqUxGdyaslkSU=",
|
||||
"_location": "/npm-install-package",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "npm-install-package@~2.1.0",
|
||||
"name": "npm-install-package",
|
||||
"escapedName": "npm-install-package",
|
||||
"rawSpec": "~2.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "~2.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/webdriverio"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/npm-install-package/-/npm-install-package-2.1.0.tgz",
|
||||
"_shasum": "d7efe3cfcd7ab00614b896ea53119dc9ab259125",
|
||||
"_spec": "npm-install-package@~2.1.0",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/webdriverio",
|
||||
"bugs": {
|
||||
"url": "https://github.com/yoshuawuyts/npm-install-package/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Install an npm package",
|
||||
"devDependencies": {
|
||||
"JSONStream": "^1.0.6",
|
||||
"base-package-json": "^1.0.2",
|
||||
"cliclopts": "^1.1.1",
|
||||
"concat": "^1.0.0",
|
||||
"concat-stream": "^1.5.0",
|
||||
"dependency-check": "^2.5.1",
|
||||
"istanbul": "^0.3.21",
|
||||
"map-limit": "0.0.1",
|
||||
"minimist": "^1.2.0",
|
||||
"mkdirp": "^0.5.1",
|
||||
"npm-check-updates": "^2.2.3",
|
||||
"pump": "^1.0.0",
|
||||
"readdirp": "^2.0.0",
|
||||
"rimraf": "^2.4.3",
|
||||
"standard": "^5.3.1",
|
||||
"tape": "^4.2.1"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"bin/*"
|
||||
],
|
||||
"homepage": "https://github.com/yoshuawuyts/npm-install-package#readme",
|
||||
"keywords": [
|
||||
"npm",
|
||||
"install",
|
||||
"package",
|
||||
"local",
|
||||
"exec"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "npm-install-package",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/yoshuawuyts/npm-install-package.git"
|
||||
},
|
||||
"scripts": {
|
||||
"deps": "dependency-check . && dependency-check . --extra --no-dev",
|
||||
"deps:pkg": "ncu",
|
||||
"deps:update": "ncu -a",
|
||||
"test": "standard && npm run deps && NODE_ENV=test node test",
|
||||
"test:cov": "standard && npm run deps && NODE_ENV=test istanbul cover test.js"
|
||||
},
|
||||
"version": "2.1.0"
|
||||
}
|
||||
Reference in New Issue
Block a user