{"name":"ssh-exec","version":"2.0.0","description":"Execute a script over ssh using Node.JS","repository":{"type":"git","url":"git://github.com/mafintosh/ssh-exec.git"},"dependencies":{"duplexify":"^3.2.0","once":"^1.3.3","ssh2":"^0.4.8"},"devDependencies":{"standard":"^3.5.0"},"bugs":{"url":"https://github.com/mafintosh/ssh-exec/issues"},"scripts":{"test":"standard"},"homepage":"https://github.com/mafintosh/ssh-exec","main":"index.js","keywords":["ssh","stream","duplex","exec","connection"],"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","gitHead":"224090885f3230e08d00f847ad9e36ebdca53994","_id":"ssh-exec@2.0.0","_shasum":"1fac54a2a348f347e689289821542724fd573646","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"1fac54a2a348f347e689289821542724fd573646","tarball":"http://registry-npm.ywwl.com/ssh-exec/download/ssh-exec-2.0.0.tgz","npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh275cCRA9TVsSAnZWagAAEZoQAJb68vzEUBNFJ5U9bU2h\n/nOKyyUiNBc/Y9ooSNMHbMkY5idLwXM7+6F6A4hCr6moJ7Vqx0FMI+73Qjrd\nnURf3urobDjgREZCN0P2Bhu51Aw4QUhCzOn5p/497dvC+W00EAmE1ZGUD4hn\n7jh5ZHqK+0aCwu6UUqsVV3wmdQamPRuR0eNPt9shpkrEJ7XTOn+BjHqGFayr\nXjxvih2JWPApO6LnsLm/yIQLvojc9qGu76Uq1cnkbFKLtAbHv3mScK6mjVem\n20hgzwvEAUUB2VvUAotemE3w8QqO1pY2To9oJIgbh4wPnbnjR8ttUfyOWTgy\nMtquOgkwrNYUr151pUGYiCOwWjiiAztFsN6AWpbOTjbykVgkRwWKtkv8NCAz\nGYXtR7xmuT1RRZtAS9daYQnwPhKiRcsv2RFd5ou6yeJdcFqFNBL4LoCm5TI6\nkW3b1iNiDFQyfH05Mj0iomcWhyHmidXcAwGkBezpBO4c28GTEatsTiqM4RK+\nq61awuYCL850EfCbM9aUBPvJt8GqVDjfX3q1YAM2ZKHmOQFv9ieijELTVLL9\n6KvTUVDSFF7bM8zAvNwJLeHVMNO/XgVQOHXZONG2xEeeEjSF39uIb7vSXAY6\n7PykfXG4FGRTpmOBz96/alpK8rKBEwjnUP2KJ2ak/RJbjv30ZTfpByailj2Y\nZgCU\r\n=/5pb\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-t0zmYrlYWRNEBHq3QaKrQYZ+etuBR9qWeojb97NZaWjwSoUaJ8tlPfa3sOWQadKa54GFx5RD+njt7mz/msZM2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA88smnw+p5wHl9Gt1/DRHriKnauPgFiMPr12pwuRIWrAiA6Sl8q+cfIffAmKyyG+L1J5pCDihUvB7DNGrRONh7WaQ=="}],"size":2752,"noattachment":false,"key":"/ssh-exec/-/ssh-exec-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"readme":"# ssh-exec\n\nExecute a script over ssh using Node.JS and pipe to and from it\n\nIt is available through npm\n\n```\nnpm install ssh-exec\n```\n\nIt is written in plain Javascript and uses [ssh2](https://github.com/mscdex/ssh2) for all the heavy lifting.\n\n## Usage\n\n``` js\nvar exec = require('ssh-exec')\n\n// using ~/.ssh/id_rsa as the private key\n\nexec('ls -lh', 'ubuntu@my-remote.com').pipe(process.stdout)\n\n// or using the more settings\n\nexec('ls -lh', {\n  user: 'ubuntu',\n  host: 'my-remote.com',\n  key: myKeyFileOrBuffer,\n  password: 'my-user-password'\n}).pipe(process.stdout)\n\n// or if you want to pipe some data to the remote process\n\nprocess.stdin\n  .pipe(exec('echo try typing something; cat -', 'ubuntu@my-remote.com'))\n  .pipe(process.stdout)\n```\n\nOptionally there is a callback api as well\n\n``` js\nexec('ls -lh', 'ubuntu@my-remote.com', function (err, stdout, stderr) {\n  console.log(err, stdout, stderr)\n})\n```\n\n## License\n\nMIT\n","publish_time":1453294433965,"_cnpm_publish_time":1453294433965,"dist-tags":{"latest":"2.0.0"}}