UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

113 lines (112 loc) 8.99 kB
{ "_args": [ [ { "raw": "spawno@^2.0.1", "scope": null, "escapedName": "spawno", "name": "spawno", "rawSpec": "^2.0.1", "spec": ">=2.0.1 <3.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/diable" ] ], "_from": "spawno@>=2.0.1 <3.0.0", "_id": "spawno@2.0.7", "_inCache": true, "_location": "/spawno", "_nodeVersion": "8.6.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/spawno-2.0.7.tgz_1514168761422_0.07133652898482978" }, "_npmUser": { "name": "ionicabizau", "email": "bizauionica@gmail.com" }, "_npmVersion": "5.3.0", "_phantomChildren": {}, "_requested": { "raw": "spawno@^2.0.1", "scope": null, "escapedName": "spawno", "name": "spawno", "rawSpec": "^2.0.1", "spec": ">=2.0.1 <3.0.0", "type": "range" }, "_requiredBy": [ "/diable" ], "_resolved": "https://registry.npmjs.org/spawno/-/spawno-2.0.7.tgz", "_shasum": "e8142025dcec81d2334bf9ef1d61b4202c37dbcc", "_shrinkwrap": null, "_spec": "spawno@^2.0.1", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/diable", "author": { "name": "Ionică Bizău", "email": "bizauionica@gmail.com", "url": "https://ionicabizau.net" }, "blah": {}, "bugs": { "url": "https://github.com/IonicaBizau/spawno/issues" }, "dependencies": { "proc-output": "^1.0.0" }, "description": "Easily work with child processes.", "devDependencies": {}, "directories": { "example": "example" }, "dist": { "integrity": "sha512-LPtvlTBIRBUxlNedicsLu6BKS/Opjf2RNVTonBC9WleTzDIbm0ZNegACkhXsm/hVi6QcnORiUw/93TjOm7qOIA==", "shasum": "e8142025dcec81d2334bf9ef1d61b4202c37dbcc", "tarball": "https://registry.npmjs.org/spawno/-/spawno-2.0.7.tgz" }, "files": [ "bin/", "app/", "lib/", "dist/", "src/", "scripts/", "resources/", "menu/", "cli.js", "index.js", "bloggify.js", "bloggify.json", "bloggify/" ], "gitHead": "e2980aab532c1e28f2b1b199f7dd483cbe4ceb9f", "homepage": "https://github.com/IonicaBizau/spawno#readme", "keywords": [ "spawn", "child", "process" ], "license": "MIT", "main": "lib/index.js", "maintainers": [ { "name": "ionicabizau", "email": "bizauionica@gmail.com" } ], "name": "spawno", "optionalDependencies": {}, "readme": "<!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->\n\n\n# spawno\n\n [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/spawno.svg)](https://www.npmjs.com/package/spawno) [![Downloads](https://img.shields.io/npm/dt/spawno.svg)](https://www.npmjs.com/package/spawno)\n\n> Easily work with child processes.\n\n## :cloud: Installation\n\n```sh\n# Using npm\nnpm install --save spawno\n\n# Using yarn\nyarn add spawno\n```\n\n\n## :clipboard: Example\n\n\n\n```js\nconst spawn = require(\"spawno\");\n\nspawn(\"ls\", [\"-l\"], { cwd: __dirname }, (err, stdout, stderr) => {\n console.log(err || stderr || stdout);\n // =>\n // total 4\n // -rw-rw-r-- 1 ionicabizau ionicabizau 256 Mar 27 14:53 index.js\n});\n\n// Pipe the output in the stdout/stderr streams (this will not collect the output in memory)\nlet proc = spawn(\"ping\", [\"ionicabizau.net\"], {\n cwd: __dirname\n , output: true\n});\n// =>\n// PING ionicabizau.net (109.107.37.233) 56(84) bytes of data.\n// 64 bytes from cip-109-107-37-233.gb1.brightbox.com (109.107.37.233): icmp_seq=1 ttl=54 time=49.2 ms\n// 64 bytes from cip-109-107-37-233.gb1.brightbox.com (109.107.37.233): icmp_seq=2 ttl=54 time=44.4 ms\n// 64 bytes from cip-109-107-37-233.gb1.brightbox.com (109.107.37.233): icmp_seq=3 ttl=54 time=47.9 ms\n// 64 bytes from cip-109-107-37-233.gb1.brightbox.com (109.107.37.233): icmp_seq=4 ttl=54 time=46.3 ms\n```\n\n\n\n## :question: Get Help\n\nThere are few ways to get help:\n\n 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.\n 2. For bug reports and feature requests, open issues. :bug:\n\n 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:\n\n\n\n## :memo: Documentation\n\n\n### `spawno(command, args, options, cb)`\nCreates the child process.\n\n#### Params\n\n- **String** `command`: The command you want to run.\n- **Array** `args`: The command arguments.\n- **Object** `options`: The options to pass to the `spawn` function extended with:\n - `output` (Boolean): If truly, the output will be piped in the\n process stdout/stderr streams.\n - `data` (String|Boolean): If `false`, the `stdin` stream will not be ended. By default this is an empty string.\n- **Function** `cb`: The callback function.\n\n#### Return\n- **Process** The child process that was created.\n\n\n\n## :yum: How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n\n## :sparkling_heart: Support my projects\n\nI open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously,\nthis takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n\n - Starring and sharing the projects you like :rocket:\n - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:\n - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:\n - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).\n - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`\n\n ![](https://i.imgur.com/z6OQI95.png)\n\nThanks! :heart:\n\n\n## :dizzy: Where is this library used?\nIf you are using this library in one of your projects, add it in this list. :sparkles:\n\n\n - [`babel-it`](https://github.com/IonicaBizau/babel-it#readme)—Babelify your code before `npm publish`.\n - [`diable`](https://github.com/IonicaBizau/diable)—Daemonize the things out.\n - [`electroner`](https://github.com/IonicaBizau/electroner#readme)—Start ElectronJS apps from Node.js.\n - [`fortran`](https://github.com/IonicaBizau/node-fortran)—Fortran bridge for Node.js which allows you to run Fortran code from Node.js.\n - [`git-cloner`](https://github.com/IonicaBizau/git-cloner#readme)—Clone multiple git repositories.\n - [`git-status`](https://github.com/IonicaBizau/git-status#readme)—A git-status wrapper.\n - [`initial-commit-date`](https://github.com/IonicaBizau/initial-commit-date#readme)—Get the initial commit date of a git repository.\n - [`powershell`](https://github.com/IonicaBizau/powershell#readme)—Run PowerShell scripts and commands from Node.js.\n - [`pull-from-source`](https://github.com/IonicaBizau/pull-from-source#readme)—Pulls the changes from the source repository in the forked one.\n - [`ship-release`](https://github.com/IonicaBizau/ship-release#readme)—Publish new versions on GitHub and npm with ease.\n - [`spawn-npm`](https://github.com/IonicaBizau/spawn-npm#readme)—Run npm commands by creating child processes.\n\n## :scroll: License\n\n[MIT][license] © [Ionică Bizău][website]\n\n[badge_patreon]: http://ionicabizau.github.io/badges/patreon.svg\n[badge_amazon]: http://ionicabizau.github.io/badges/amazon.svg\n[badge_paypal]: http://ionicabizau.github.io/badges/paypal.svg\n[badge_paypal_donate]: http://ionicabizau.github.io/badges/paypal_donate.svg\n[patreon]: https://www.patreon.com/ionicabizau\n[amazon]: http://amzn.eu/hRo9sIZ\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW\n[donate-now]: http://i.imgur.com/6cMbHOC.png\n\n[license]: http://showalicense.com/?fullname=Ionic%C4%83%20Biz%C4%83u%20%3Cbizauionica%40gmail.com%3E%20(https%3A%2F%2Fionicabizau.net)&year=2016#license-mit\n[website]: https://ionicabizau.net\n[contributing]: /CONTRIBUTING.md\n[docs]: /DOCUMENTATION.md\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/IonicaBizau/spawno.git" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "version": "2.0.7" }