{"_id":"git-spawned-stream","_rev":"9-7a27e39fa2040044fed49e3613efad78","name":"git-spawned-stream","description":"Create a readable stream from a spawned git process.","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"git-spawned-stream","version":"0.1.0","description":"Create a readable stream from a spawned git process.","main":"index.js","dependencies":{"spawn-to-readstream":"~0.1.3","debug":"~0.8.1"},"devDependencies":{"mocha":"~1.19.0","proxyquire":"~1.0.0","should":"~3.3.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/alessioalex/git-spawned-stream"},"keywords":["spawned","git","stream"],"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com","url":"http://careers.stackoverflow.com/alessioalex"},"license":"MIT","bugs":{"url":"https://github.com/alessioalex/spawned-git-stream/issues"},"homepage":"https://github.com/alessioalex/spawned-git-stream","_id":"git-spawned-stream@0.1.0","dist":{"shasum":"b02d2a7b408e74fbdf53690453201122f09c0642","tarball":"https://registry.npmjs.org/git-spawned-stream/-/git-spawned-stream-0.1.0.tgz","integrity":"sha512-oOaEF/Rts8WJlqwC9pW1r2BLqrcPh/5fSqUZZSVGrgtu74rlK5kXHT1vpXhv2D3nZwRKmJMUsPFKmMK1IIc4Vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCryAq04/iJDTkosb6thlx7tN+wiO6e3DwTKnoyyjHadwIgBhD1Tu29smvBXRGo8nflJP6lSXAGnQ8FcSlXJA0b2uw="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"directories":{}},"0.1.1":{"name":"git-spawned-stream","version":"0.1.1","description":"Create a readable stream from a spawned git process.","main":"index.js","dependencies":{"spawn-to-readstream":"~0.1.3","debug":"~0.8.1"},"devDependencies":{"mocha":"~1.19.0","proxyquire":"~1.0.0","should":"~3.3.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/alessioalex/git-spawned-stream.git"},"keywords":["spawned","git","stream"],"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com","url":"http://careers.stackoverflow.com/alessioalex"},"license":"MIT","bugs":{"url":"https://github.com/alessioalex/git-spawned-stream/issues"},"homepage":"https://github.com/alessioalex/git-spawned-stream","gitHead":"c8bdd61ab3c9f086b4f29ddc49d2c06ee80a068d","_id":"git-spawned-stream@0.1.1","_shasum":"38927da02e52d862396861bf996557452643802b","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"},"dist":{"shasum":"38927da02e52d862396861bf996557452643802b","tarball":"https://registry.npmjs.org/git-spawned-stream/-/git-spawned-stream-0.1.1.tgz","integrity":"sha512-utqgMl0gXZS7FJnAsy+NVVVVu5pddoOgGj9ACb/z5lbz1xOd/6nIBqeQaxJiRtgpfxVUdmxvEXAIoM5Co1F47Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCT3NUsuTJVBB25GwGOJyxB2d4WfyuFwRi1GP4gFf08gIhAP8vpCw20CEoa5WZXbym/u45uel3o/ypkuF4Lyk0R6So"}]},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"directories":{}},"1.0.0":{"name":"git-spawned-stream","version":"1.0.0","description":"Create a readable stream from a spawned git process.","main":"index.js","dependencies":{"spawn-to-readstream":"~0.1.3","debug":"~0.8.1"},"devDependencies":{"mocha":"~1.19.0","proxyquire":"~1.0.0","should":"~3.3.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/alessioalex/git-spawned-stream.git"},"keywords":["spawned","git","stream"],"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com","url":"http://careers.stackoverflow.com/alessioalex"},"license":"MIT","bugs":{"url":"https://github.com/alessioalex/git-spawned-stream/issues"},"homepage":"https://github.com/alessioalex/git-spawned-stream","gitHead":"169682d98fc1668772200ac0458ab830f92bcb03","_id":"git-spawned-stream@1.0.0","_shasum":"abffaf1dab1bf2a612926d5fed1c9f35ef4e3111","_from":".","_npmVersion":"4.0.5","_nodeVersion":"6.9.4","_npmUser":{"name":"alessioalex","email":"npm@services.alessioalex.com"},"dist":{"shasum":"abffaf1dab1bf2a612926d5fed1c9f35ef4e3111","tarball":"https://registry.npmjs.org/git-spawned-stream/-/git-spawned-stream-1.0.0.tgz","integrity":"sha512-CdUpBulxMBlEkUGh9hpvqmmmCKS2X7q/Ct3ml+wmkpnXwEJfkXr2v7APLPyeZ33DKbpehxSiF6Skl2P1itJjRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDl14pty941tHfWdR3PASj1kBv27ddXdPMRh3oz2mDRUAIgOEXZfY23XtR5w5aMfo9QjE5eERdLmjwux9uQ0yoN30U="}]},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/git-spawned-stream-1.0.0.tgz_1493713502304_0.22975589684210718"},"directories":{}},"1.0.1":{"name":"git-spawned-stream","version":"1.0.1","description":"Create a readable stream from a spawned git process.","main":"index.js","dependencies":{"debug":"^4.1.0","spawn-to-readstream":"~0.1.3"},"devDependencies":{"mocha":"^5.2.0","proxyquire":"~1.0.0","should":"~3.3.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/alessioalex/git-spawned-stream.git"},"keywords":["spawned","git","stream"],"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com","url":"http://careers.stackoverflow.com/alessioalex"},"license":"MIT","bugs":{"url":"https://github.com/alessioalex/git-spawned-stream/issues"},"homepage":"https://github.com/alessioalex/git-spawned-stream","gitHead":"97f1d37151a253296f5b1595a0a9044ba4ae9383","_id":"git-spawned-stream@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"alessioalex","email":"npm@services.alessioalex.com"},"dist":{"integrity":"sha512-W2Zo3sCiq5Hqv1/FLsNmGomkXdyimmkHncGzqjBHh7nWx+CbH5dkWGb6CiFdknooL7wfeZJ3gz14KrXl/gotCw==","shasum":"841cda93d106eeb2c71a3c1af44ec484b440248b","tarball":"https://registry.npmjs.org/git-spawned-stream/-/git-spawned-stream-1.0.1.tgz","fileCount":5,"unpackedSize":4362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwHC8CRA9TVsSAnZWagAApsUP/2BKstgqGMNtbrxrZplI\n9XQebt/uCOAm16VVa2I/ftpCBcfwf2IOskElX6Jfw3ItMoYU0n2EsSlPv6W1\n1M2ZVmYb7wjnaBko5klTjFwGxJFbx9MptxWhtlm9ihVctA59E9CIrDU5VxS2\nfthGNGuZEBJgyasnwnECjBiC8tq/kuOcjDSDpNJEE8W5FpGOwNh0NwaUAM4M\nd1rFO+IoBatm9UVKmevfsuB1mfbYpR4WMZQgTf4UmGy/WTfjjOYyJjdWenI+\npmnWmTSjsPhhQCVJ+maFo20bWwjZ3NbcNDD7BpxxBYNYq6an09XeVptpetxI\nZDuEzbbiJIUoYzFqqkWCRWmKv+f4H7FIG35qdkGtPCeOiPBMM2KTe4PjYVJm\nUnt1xdXkrHtvqVSGlSUi4AtnHp3MotWUa/OF/VjDhHdeGZB95pJZLcVS8whv\nVf/3m7MQV5RILNU9QsAl25AzbRWJakslc2WMH/xOTLf3VTVCbqCXUHb4atPf\nbFbLAmf7Cufsk3T7H1ikh+SlAjTG6OQyIlbmujNnABlRuyBVhqxZ2GNGocWc\nyNXOUxMEkb9yR0Pq8KJDeoPkELEDRlP1/7lEv4w5koBwGoTV0WbnLnLu2AIh\nqUsyYSeR2iXL3NnHzguJj5lnkWhfaHvlSKqYTf0wHtzvleoR+0IelaNspM+1\nQsz2\r\n=xxX9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGTn4sRPjZkootEgP9AIixH+iEhmpE7BkcI9T3YeDaIGAiB5RWbPGzt09EHVc9bi4KIpHgQvJfBzxHwR8NlT6EMKBQ=="}]},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-spawned-stream_1.0.1_1539338427845_0.5678771909935845"},"_hasShrinkwrap":false}},"readme":"# git-spawned-stream\n\nCreate a readable stream from a spawned git process.\n\n## Usage\n\n```js\ngitSpawnedStream(repoPath, spawnArguments, limitInBytes, gitBinary)\n```\n\nArguments:\n\n- `repoPath` - the path to the repo, ex: /home/alex/node/.git (or the path to the git bare repo)\n- `spawnArguments` - the arguments that will be passed to the `child_process.spawn` function\n- `limitInBytes` - kill the process if it exceeds the imposed limit (sends more data than allowed)\n- `gitBinary` - path to the git binary to use (use the one in `PATH` by default)\n\nExample:\n\n```js\nvar gitSpawnedStream = require('git-spawned-stream');\nvar path = require('path');\nvar repoPath = process.env.REPO || path.join(__dirname, '.git');\nrepoPath = path.resolve(repoPath);\nvar byteLimit = 5 * 1024 * 1024; // 5 Mb\n\n// sort of a git log -n 2\nvar stream = gitSpawnedStream(repoPath, [\n  'rev-list',\n  '--max-count=2',\n  '--header',\n  'HEAD'\n], byteLimit);\n\nstream.on('data', function(data) {\n  console.log('DATA', data.toString('utf8'));\n}).on('error', function(err) {\n  console.error('An error occurred:');\n  console.error('-----------------\\n');\n  console.error(err.message);\n  process.exit(1);\n}).on('end', function(killed) {\n  // when the stream is cut, killed === true\n  console.log(\"\\n±±±±±±±±±±±±±±±±±\\nThat's all folks!\");\n});\n```\n\n## License\n\nMIT\n","maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"time":{"modified":"2022-06-18T08:35:31.997Z","created":"2014-05-25T10:31:55.900Z","0.1.0":"2014-05-25T10:31:55.900Z","0.1.1":"2015-10-30T12:31:03.927Z","1.0.0":"2017-05-02T08:25:02.936Z","1.0.1":"2018-10-12T10:00:28.003Z"},"homepage":"https://github.com/alessioalex/git-spawned-stream","keywords":["spawned","git","stream"],"repository":{"type":"git","url":"git+https://github.com/alessioalex/git-spawned-stream.git"},"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com","url":"http://careers.stackoverflow.com/alessioalex"},"bugs":{"url":"https://github.com/alessioalex/git-spawned-stream/issues"},"license":"MIT","readmeFilename":"README.md","users":{"dypsilon":true}}