0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-14 17:47:35 -05:00
denoland-deno/tests/registry/npm/cross-spawn/registry.json

1 line
7.9 KiB
JSON

{"name":"cross-spawn","description":"Cross platform child_process#spawn and child_process#spawnSync","dist-tags":{"latest":"7.0.3"},"versions":{"7.0.3":{"name":"cross-spawn","version":"7.0.3","description":"Cross platform child_process#spawn and child_process#spawnSync","author":{"name":"André Cruz","email":"andre@moxy.studio"},"repository":{"type":"git","url":"git+ssh://git@github.com/moxystudio/node-cross-spawn.git"},"license":"MIT","main":"index.js","scripts":{"lint":"eslint .","test":"jest --env node --coverage","prerelease":"npm t && npm run lint","release":"standard-version","postrelease":"git push --follow-tags origin HEAD && npm publish"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{"path-key":"^3.1.0","shebang-command":"^2.0.0","which":"^2.0.1"},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","babel-core":"^6.26.3","babel-jest":"^24.9.0","babel-preset-moxy":"^3.1.0","eslint":"^5.16.0","eslint-config-moxy":"^7.1.0","husky":"^3.0.5","jest":"^24.9.0","lint-staged":"^9.2.5","mkdirp":"^0.5.1","rimraf":"^3.0.0","standard-version":"^7.0.0"},"engines":{"node":">= 8"},"gitHead":"7bc42bc409d9da6ad691df8d1d5ef69003bf1dc3","bugs":{"url":"https://github.com/moxystudio/node-cross-spawn/issues"},"_id":"cross-spawn@7.0.3","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==","shasum":"f73a85b9d5d41d045551c177e2882d4ac85728a6","tarball":"http://localhost:4260/cross-spawn/cross-spawn-7.0.3.tgz","fileCount":10,"unpackedSize":21207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJey+WtCRA9TVsSAnZWagAAQbcP/1FGxwkPr+a5gx/ntrWD\n5YJdj1PVM6QsC2wUtn8CwW8GQVt5S4jMEQ4ZWbhBPgsHKyvfC4O5CxwGa7JR\n/ONvY8hrfjeXZZ7ePL0u683K05+wBC8n9anUd/RROEbF/0Ptia7pWyiKGEpG\nTh6btdUzKIijKtXrANxXe/U7dXOtFtg3sEtKKhFGB0EFl2x6vQJi3FlCasfT\nTrL4kCVcGiLFVDFLPgM18iRDG83obqsi0fnujL/EzLSGt1ldBm0aTNyIUWkt\nDdcvuWYTDAH6yCEB/kDIUfBTy94p2Vc5yp76Rp5vMCbPPBWEHszGbHcGqhkK\n0BFTs/e5dzhCDZ0i83YCwyTBP0bF+Jzum4/lckN2m5VYeeWAbfvB5G2jmUAv\nlTXNyPsg03ycX3p6OvSxbdpSzea/SZVYybr59gHHBkL4JgoFo2ypFs0ZVJfw\ncG4A8LF4z6V2DbLVviLUVsQ6KQqKaCTLxMLcfwd59AHVUrGqtzB6EzqYfyl5\n9oYQgZF78WjXTezST2e7cf14ITfIv7voJ5ci9xVh27L0wvkSvJX4SENyn9Nr\ngIvfeSSJndO76mhB0vZ6ArW6S9BV/FspGpZm5zASk+i9tj+ppy19zbNWhm/5\ncvN8TJiui80niDmnM6mHXHrC3mZiIBgFJHp9NoepmUG03GG9lmLCab3CkGu6\nhqhR\r\n=lXVa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV3uyoAawrXTO40sTQ71+tY4UBLGXyIxxzykg9MOSZRgIhAOXE5g5AY0aGrmKohMbsOiiiWUWew3zD5tGO9e/D6VNJ"}]},"directories":{},"_hasShrinkwrap":false}},"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] [![Coverage Status][codecov-image]][codecov-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]:https://img.shields.io/npm/dm/cross-spawn.svg\n[npm-image]:https://img.shields.io/npm/v/cross-spawn.svg\n[travis-url]:https://travis-ci.org/moxystudio/node-cross-spawn\n[travis-image]:https://img.shields.io/travis/moxystudio/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[codecov-url]:https://codecov.io/gh/moxystudio/node-cross-spawn\n[codecov-image]:https://img.shields.io/codecov/c/github/moxystudio/node-cross-spawn/master.svg\n[david-dm-url]:https://david-dm.org/moxystudio/node-cross-spawn\n[david-dm-image]:https://img.shields.io/david/moxystudio/node-cross-spawn.svg\n[david-dm-dev-url]:https://david-dm.org/moxystudio/node-cross-spawn?type=dev\n[david-dm-dev-image]:https://img.shields.io/david/dev/moxystudio/node-cross-spawn.svg\n\nA cross platform solution to node's spawn and spawnSync.\n\n\n## Installation\n\nNode.js version 8 and up:\n`$ npm install cross-spawn`\n\nNode.js version 7 and under:\n`$ npm install cross-spawn@6`\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](https://en.wikipedia.org/wiki/Shebang_(Unix))\n- Has problems running commands with [spaces](https://github.com/nodejs/node/issues/7367)\n- Has problems running commands with posix relative paths (e.g.: `./my-folder/my-executable`)\n- Has an [issue](https://github.com/moxystudio/node-cross-spawn/issues/82) with command shims (files in `node_modules/.bin/`), where arguments with quotes and parenthesis would result in [invalid syntax error](https://github.com/moxystudio/node-cross-spawn/blob/e77b8f22a416db46b6196767bcd35601d7e11d54/test/index.test.js#L149)\n- No `options.shell` support on node `<v4.8`\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\nconst spawn = require('cross-spawn');\n\n// Spawn NPM asynchronously\nconst child = spawn('npm', ['list', '-g', '-depth', '0'], { stdio: 'inherit' });\n\n// Spawn NPM synchronously\nconst result = spawn.sync('npm', ['list', '-g', '-depth', '0'], { stdio: 'inherit' });\n```\n\n\n## Caveats\n\n### Using `options.shell` as an alternative to `cross-spawn`\n\nStarting from node `v4.8`, `spawn` has a `shell` option that allows you run commands from within a shell. This new option solves\nthe [PATHEXT](https://github.com/joyent/node/issues/2318) issue but:\n\n- It's not supported in node `<v4.8`\n- You must manually escape the command and arguments which is very error prone, specially when passing user input\n- There are a lot of other unresolved issues from the [Why](#why) section that you must take into account\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### `options.shell` support\n\nWhile `cross-spawn` adds support for `options.shell` in node `<v4.8`, all of its enhancements are disabled.\n\nThis mimics the Node.js behavior. More specifically, the command and its arguments will not be automatically escaped nor shebang support will be offered. This is by design because if you are using `options.shell` you are probably targeting a specific platform anyway and you don't want things to get into your way.\n\n### Shebangs support\n\nWhile `cross-spawn` handles shebangs on Windows, its support is limited. More specifically, it just supports `#!/usr/bin/env <program>` where `<program>` must not contain any arguments. \nIf you would like to have the shebang support improved, feel free to contribute via a pull-request.\n\nRemember to always test your code on Windows!\n\n\n## Tests\n\n`$ npm test` \n`$ npm test -- --watch` during development\n\n\n## License\n\nReleased under the [MIT License](https://www.opensource.org/licenses/mit-license.php).\n","homepage":"https://github.com/moxystudio/node-cross-spawn","repository":{"type":"git","url":"git+ssh://git@github.com/moxystudio/node-cross-spawn.git"},"author":{"name":"André Cruz","email":"andre@moxy.studio"},"bugs":{"url":"https://github.com/moxystudio/node-cross-spawn/issues"},"license":"MIT","readmeFilename":"README.md"}