{ "_args": [ [ { "raw": "cross-spawn@^5.0.1", "scope": null, "escapedName": "cross-spawn", "name": "cross-spawn", "rawSpec": "^5.0.1", "spec": ">=5.0.1 <6.0.0", "type": "range" }, "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/react-native-scripts" ] ], "_from": "cross-spawn@>=5.0.1 <6.0.0", "_id": "cross-spawn@5.1.0", "_inCache": true, "_location": "/cross-spawn", "_nodeVersion": "7.0.0", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/cross-spawn-5.1.0.tgz_1488134324770_0.025160177145153284" }, "_npmUser": { "name": "satazor", "email": "andremiguelcruz@msn.com" }, "_npmVersion": "3.10.8", "_phantomChildren": {}, "_requested": { "raw": "cross-spawn@^5.0.1", "scope": null, "escapedName": "cross-spawn", "name": "cross-spawn", "rawSpec": "^5.0.1", "spec": ">=5.0.1 <6.0.0", "type": "range" }, "_requiredBy": [ "/@expo/spawn-async", "/react-native-scripts" ], "_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", "_shasum": "e8bd0efee58fcff6f8f94510a0a554bbfa235449", "_shrinkwrap": null, "_spec": "cross-spawn@^5.0.1", "_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/react-native-scripts", "author": { "name": "IndigoUnited", "email": "hello@indigounited.com", "url": "http://indigounited.com" }, "bugs": { "url": "https://github.com/IndigoUnited/node-cross-spawn/issues/" }, "dependencies": { "lru-cache": "^4.0.1", "shebang-command": "^1.2.0", "which": "^1.2.9" }, "description": "Cross platform child_process#spawn and child_process#spawnSync", "devDependencies": { "@satazor/eslint-config": "^3.0.0", "eslint": "^3.0.0", "expect.js": "^0.3.0", "glob": "^7.0.0", "mkdirp": "^0.5.1", "mocha": "^3.0.2", "once": "^1.4.0", "rimraf": "^2.5.0" }, "directories": {}, "dist": { "shasum": "e8bd0efee58fcff6f8f94510a0a554bbfa235449", "tarball": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz" }, "files": [ "index.js", "lib" ], "gitHead": "1da4c09ccf658079849a3d191b16e59bc600e8b4", "homepage": "https://github.com/IndigoUnited/node-cross-spawn#readme", "keywords": [ "spawn", "spawnSync", "windows", "cross", "platform", "path", "ext", "path-ext", "path_ext", "shebang", "hashbang", "cmd", "execute" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "satazor", "email": "andremiguelcruz@msn.com" } ], "name": "cross-spawn", "optionalDependencies": {}, "readme": "# cross-spawn\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Build status][appveyor-image]][appveyor-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]\n\n[npm-url]:https://npmjs.org/package/cross-spawn\n[downloads-image]:http://img.shields.io/npm/dm/cross-spawn.svg\n[npm-image]:http://img.shields.io/npm/v/cross-spawn.svg\n[travis-url]:https://travis-ci.org/IndigoUnited/node-cross-spawn\n[travis-image]:http://img.shields.io/travis/IndigoUnited/node-cross-spawn/master.svg\n[appveyor-url]:https://ci.appveyor.com/project/satazor/node-cross-spawn\n[appveyor-image]:https://img.shields.io/appveyor/ci/satazor/node-cross-spawn/master.svg\n[david-dm-url]:https://david-dm.org/IndigoUnited/node-cross-spawn\n[david-dm-image]:https://img.shields.io/david/IndigoUnited/node-cross-spawn.svg\n[david-dm-dev-url]:https://david-dm.org/IndigoUnited/node-cross-spawn#info=devDependencies\n[david-dm-dev-image]:https://img.shields.io/david/dev/IndigoUnited/node-cross-spawn.svg\n\nA cross platform solution to node's spawn and spawnSync.\n\n\n## Installation\n\n`$ npm install cross-spawn`\n\nIf you are using `spawnSync` on node 0.10 or older, you will also need to install `spawn-sync`:\n\n`$ npm install spawn-sync`\n\n\n## Why\n\nNode has issues when using spawn on Windows:\n\n- It ignores [PATHEXT](https://github.com/joyent/node/issues/2318)\n- It does not support [shebangs](http://pt.wikipedia.org/wiki/Shebang)\n- No `options.shell` support on node < v6\n- It does not allow you to run `del` or `dir`\n\nAll these issues are handled correctly by `cross-spawn`.\nThere are some known modules, such as [win-spawn](https://github.com/ForbesLindesay/win-spawn), that try to solve this but they are either broken or provide faulty escaping of shell arguments.\n\n\n## Usage\n\nExactly the same way as node's [`spawn`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options) or [`spawnSync`](https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options), so it's a drop in replacement.\n\n\n```js\nvar spawn = require('cross-spawn');\n\n// Spawn NPM asynchronously\nvar child = spawn('npm', ['list', '-g', '-depth', '0'], { stdio: 'inherit' });\n\n// Spawn NPM synchronously\nvar results = spawn.sync('npm', ['list', '-g', '-depth', '0'], { stdio: 'inherit' });\n```\n\n\n## Caveats\n\n#### `options.shell` as an alternative to `cross-spawn`\n\nStarting from node v6, `spawn` has a `shell` option that allows you run commands from within a shell. This new option solves most of the problems that `cross-spawn` attempts to solve, but:\n\n- It's not supported in node < v6\n- It has no support for shebangs on Windows\n- You must manually escape the command and arguments which is very error prone, specially when passing user input\n\nIf you are using the `shell` option to spawn a command in a cross platform way, consider using `cross-spawn` instead. You have been warned.\n\n\n#### Shebangs\n\nWhile `cross-spawn` handles shebangs on Windows, its support is limited: e.g.: it doesn't handle arguments after the path, e.g.: `#!/bin/bash -e`.\n\nRemember to always test your code on Windows!\n\n\n## Tests\n\n`$ npm test`\n\n\n## License\n\nReleased under the [MIT License](http://www.opensource.org/licenses/mit-license.php).\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/IndigoUnited/node-cross-spawn.git" }, "scripts": { "lint": "eslint '{*.js,lib/**/*.js,test/**/*.js}'", "test": "node test/prepare && mocha --bail test/test" }, "version": "5.1.0" }