UNPKG

npm-script

Version:

NPM run-script spawning options generator

25 lines (21 loc) 562 B
var spawner = require('../ssh-spawner').createSpawner({ server:'localhost',port:2222,user:'ubuntu' }) var queue = require('../node-process-queue').createQueue({ spawner:function (cmd, cb) { var child, err try { child = spawner.apply(null, cmd.spawnOptions) } catch (e) { err = e; } finally { cb(err, child); } } }) require('../ssh-fs').createFS(queue,null,function (err, fs) {test(fs)}) function test(fs) { require('./').getSpawnOptions('/home/ubuntu/Documents/nship', 'start', {fs:fs}, console.log); }