{"_id":"machine-as-script","_rev":"205578","name":"machine-as-script","description":"Run a machine as a command-line script.","dist-tags":{"beta":"4.0.0-0","latest":"4.1.1"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"time":{"modified":"2021-06-03T13:14:46.000Z","created":"2015-05-13T13:54:26.715Z","4.1.1":"2017-05-04T23:37:33.101Z","4.1.0":"2017-04-05T17:01:39.414Z","4.0.9":"2016-11-15T20:57:17.514Z","4.0.8":"2016-09-26T20:07:38.863Z","4.0.7":"2016-09-26T20:03:39.383Z","4.0.6":"2016-09-14T18:48:47.656Z","4.0.5":"2016-09-08T22:41:15.199Z","4.0.4":"2016-09-01T00:23:38.330Z","4.0.3":"2016-08-27T01:56:42.030Z","4.0.2":"2016-08-27T01:32:56.907Z","4.0.1":"2016-08-19T19:19:27.300Z","4.0.0":"2016-08-01T20:27:31.749Z","4.0.0-0":"2016-07-29T16:42:44.144Z","3.0.2":"2016-07-18T22:26:40.177Z","3.0.1":"2016-06-18T15:14:52.375Z","3.0.0":"2016-02-23T23:18:36.576Z","2.0.1":"2015-08-09T01:30:19.063Z","2.0.0":"2015-08-07T15:55:27.515Z","1.2.0":"2015-07-22T07:15:17.414Z","1.1.2":"2015-07-20T20:27:02.362Z","1.1.1":"2015-07-15T18:10:31.346Z","1.1.0":"2015-07-15T12:56:42.746Z","1.0.4":"2015-07-13T19:36:15.733Z","1.0.3":"2015-06-19T19:52:45.628Z","1.0.2":"2015-05-18T23:06:19.417Z","1.0.1":"2015-05-13T13:54:26.715Z"},"users":{},"author":{"name":"Mike McNeil"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"versions":{"4.1.1":{"name":"machine-as-script","version":"4.1.1","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"@sailshq/lodash":"^3.10.2","chalk":"1.1.3","commander":"2.6.0","machine":"^13.0.0-9","rttc":"^10.0.0-0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^3.0.0-1","mocha":"3.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"484319fe1c7045c6cac52c0ced545335fa1cc3a0","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.1.1","_shasum":"20090a88707af2fedf2e19bb72c50d251dda7ff8","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"mikermcneil","email":"npm@sailsjs.com"},"dist":{"shasum":"20090a88707af2fedf2e19bb72c50d251dda7ff8","size":21505,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.1.1.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/machine-as-script-4.1.1.tgz_1493941051129_0.9870289112441242"},"directories":{},"publish_time":1493941053101,"_hasShrinkwrap":false,"_cnpm_publish_time":1493941053101},"4.1.0":{"name":"machine-as-script","version":"4.1.0","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-9","rttc":"^10.0.0-0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^3.0.0-1","mocha":"3.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"d6509fdb8d57fb3b6c04bb29684b68cc6086b91e","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.1.0","_shasum":"d2a9e4d05ddd93cf36cc3a929eee2d2f311dc490","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"d2a9e4d05ddd93cf36cc3a929eee2d2f311dc490","size":21511,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.1.0.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/machine-as-script-4.1.0.tgz_1491411698572_0.620163326850161"},"directories":{},"publish_time":1491411699414,"_hasShrinkwrap":false,"_cnpm_publish_time":1491411699414},"4.0.9":{"name":"machine-as-script","version":"4.0.9","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-9","rttc":"^10.0.0-0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^3.0.0-1","mocha":"3.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"e1a54d18d65809eb4cfa64bfe9db4ae925146e77","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.9","_shasum":"c6eb860994c2949021be6e37f94a4a344e6fde09","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"c6eb860994c2949021be6e37f94a4a344e6fde09","size":21366,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.9.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.9.tgz_1479243435280_0.7667117703240365"},"directories":{},"publish_time":1479243437514,"_cnpm_publish_time":1479243437514,"_hasShrinkwrap":false},"4.0.8":{"name":"machine-as-script","version":"4.0.8","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-9","rttc":"^10.0.0-0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^3.0.0-1","mocha":"3.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"de7ad072d406d2e64cfee9510801acca8ab693a6","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.8","_shasum":"a3999402b64a2e5bb8261e2e17a17e4800fa80cc","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"a3999402b64a2e5bb8261e2e17a17e4800fa80cc","size":20785,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.8.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.8.tgz_1474920456645_0.6335533659439534"},"directories":{},"publish_time":1474920458863,"_cnpm_publish_time":1474920458863,"_hasShrinkwrap":false},"4.0.7":{"name":"machine-as-script","version":"4.0.7","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-9","rttc":"^10.0.0-0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^3.0.0-1","mocha":"3.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"7217a4a9189917d702474d8db60798d053d745f8","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.7","_shasum":"da1a460f2216bfa95762eccefdc76839f2dcfef8","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"da1a460f2216bfa95762eccefdc76839f2dcfef8","size":20773,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.7.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.7.tgz_1474920217362_0.22009011381305754"},"directories":{},"publish_time":1474920219383,"_cnpm_publish_time":1474920219383,"_hasShrinkwrap":false},"4.0.6":{"name":"machine-as-script","version":"4.0.6","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-9","rttc":"^10.0.0-0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^3.0.0-1","mocha":"3.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"66f0b1c4fdc054d3b6766d9b67d7449bde1cccf5","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.6","_shasum":"f3d65ea8dbd0d0367d4868a4708ab5c34ce098e2","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"f3d65ea8dbd0d0367d4868a4708ab5c34ce098e2","size":20668,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.6.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.6.tgz_1473878925627_0.8601897899061441"},"directories":{},"publish_time":1473878927656,"_cnpm_publish_time":1473878927656,"_hasShrinkwrap":false},"4.0.5":{"name":"machine-as-script","version":"4.0.5","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-9","rttc":"^10.0.0-0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^3.0.0-1","mocha":"3.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"ac5634eeab418b4c91ffe835e0bce0b387165ee8","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.5","_shasum":"1330a43eb33f92ba87714d4e1c5dceb82a0a9f55","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"1330a43eb33f92ba87714d4e1c5dceb82a0a9f55","size":20271,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.5.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.5.tgz_1473374473176_0.5312408385798335"},"directories":{},"publish_time":1473374475199,"_cnpm_publish_time":1473374475199,"_hasShrinkwrap":false},"4.0.4":{"name":"machine-as-script","version":"4.0.4","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-9","rttc":"^10.0.0-0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^3.0.0-1","mocha":"3.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"2e7466541dc4ed30076918601ae876a6e73e95cb","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.4","_shasum":"a2cf7c636e1e62adb17989aa6153b212b703cdca","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"a2cf7c636e1e62adb17989aa6153b212b703cdca","size":20288,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.4.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.4.tgz_1472689416346_0.1886982205323875"},"directories":{},"publish_time":1472689418330,"_cnpm_publish_time":1472689418330,"_hasShrinkwrap":false},"4.0.3":{"name":"machine-as-script","version":"4.0.3","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-9","rttc":"^10.0.0-0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^3.0.0-1","mocha":"3.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"a0f9f939b4a33d947a76e416f2e6ab1beab99df4","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.3","_shasum":"e8c46de56f490c6ba0a3d6460edf563f97b283e3","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"e8c46de56f490c6ba0a3d6460edf563f97b283e3","size":19944,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.3.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.3.tgz_1472262999812_0.30294254957698286"},"directories":{},"publish_time":1472263002030,"_cnpm_publish_time":1472263002030,"_hasShrinkwrap":false},"4.0.2":{"name":"machine-as-script","version":"4.0.2","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-9","rttc":"^10.0.0-0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^3.0.0-1","mocha":"3.0.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"739705d7317a9967034123c1783e3e6230e6a0a5","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.2","_shasum":"7187772b653f18a5a34b0226fbf8805027cf0c60","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"7187772b653f18a5a34b0226fbf8805027cf0c60","size":19661,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.2.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.2.tgz_1472261575782_0.41972116520628333"},"directories":{},"publish_time":1472261576907,"_cnpm_publish_time":1472261576907,"_hasShrinkwrap":false},"4.0.1":{"name":"machine-as-script","version":"4.0.1","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-0","rttc":"^9.7.0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^2.0.2","mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"7103d2c0e7ff47cce0559a4bd3658a33c04da601","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.1","_shasum":"c631e60d2893bd866a07276b3a1e69f32b8fdf26","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"c631e60d2893bd866a07276b3a1e69f32b8fdf26","size":15677,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.1.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.1.tgz_1471634365960_0.6229134779423475"},"directories":{},"publish_time":1471634367300,"_cnpm_publish_time":1471634367300,"_hasShrinkwrap":false},"4.0.0":{"name":"machine-as-script","version":"4.0.0","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-0","rttc":"^9.7.0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^2.0.2","mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"05e19231794b729c5816a0102f5c8f1552b933cf","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.0","_shasum":"de96c58b202d81ca8a9633aff893a82cb10dedea","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"de96c58b202d81ca8a9633aff893a82cb10dedea","size":10329,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.0.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.0.tgz_1470083249994_0.42770351632498205"},"directories":{},"publish_time":1470083251749,"_cnpm_publish_time":1470083251749,"_hasShrinkwrap":false},"4.0.0-0":{"name":"machine-as-script","version":"4.0.0-0","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^13.0.0-0","rttc":"^9.7.0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^2.0.2","mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"5dcaa4e5078401f17f38f6b7ad144bc85857f552","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@4.0.0-0","_shasum":"b13d8632c59b6df4dec84c79c252a248998e26af","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"b13d8632c59b6df4dec84c79c252a248998e26af","size":10326,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-4.0.0-0.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-4.0.0-0.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/machine-as-script-4.0.0-0.tgz_1469810561163_0.22732479614205658"},"directories":{},"publish_time":1469810564144,"_cnpm_publish_time":1469810564144,"_hasShrinkwrap":false},"3.0.2":{"name":"machine-as-script","version":"3.0.2","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^12.3.0","rttc":"^9.7.0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^2.0.2","mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"3e704d83fea7f3aff1dbba4a007b669e02ae2068","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@3.0.2","_shasum":"f8c396da42785cf86888699717dad5cc7508f0ad","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"f8c396da42785cf86888699717dad5cc7508f0ad","size":7068,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-3.0.2.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/machine-as-script-3.0.2.tgz_1468880799052_0.33986068540252745"},"directories":{},"publish_time":1468880800177,"_cnpm_publish_time":1468880800177,"_hasShrinkwrap":false},"3.0.1":{"name":"machine-as-script","version":"3.0.1","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha test"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"3.10.1","machine":"^12.2.4","rttc":"^9.7.0","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^2.0.2","mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"c25cd787ef696521475405296a642f39f21d3a0a","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@3.0.1","_shasum":"5bbf4eb762b053908e5665da1bf0786204a03c36","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"5bbf4eb762b053908e5665da1bf0786204a03c36","size":7066,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-3.0.1.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/machine-as-script-3.0.1.tgz_1466262890031_0.18686518003232777"},"directories":{},"publish_time":1466262892375,"_cnpm_publish_time":1466262892375,"_hasShrinkwrap":false},"3.0.0":{"name":"machine-as-script","version":"3.0.0","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"12.1.0","rttc":"^8.1.7","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^1.4.0","mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"5a28bb3fd0c309e57ad479ccc4f0616901288dd8","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@3.0.0","_shasum":"a78d6ac0495375ca2e81fe1f59a38e396877578f","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"a78d6ac0495375ca2e81fe1f59a38e396877578f","size":6181,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-3.0.0.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/machine-as-script-3.0.0.tgz_1456269514195_0.16094381571747363"},"directories":{},"publish_time":1456269516576,"_cnpm_publish_time":1456269516576,"_hasShrinkwrap":false},"2.0.1":{"name":"machine-as-script","version":"2.0.1","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"^11.0.3","rttc":"^8.1.7","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^1.4.0","mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"04e1709cf1b015356d47ab562a0fbfa5880e991e","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@2.0.1","_shasum":"0a2f94313eb4f22ae4acc2aa2d25dc9546ef955a","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"0a2f94313eb4f22ae4acc2aa2d25dc9546ef955a","size":5637,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-2.0.1.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{},"publish_time":1439083819063,"_cnpm_publish_time":1439083819063,"_hasShrinkwrap":false},"2.0.0":{"name":"machine-as-script","version":"2.0.0","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"^11.0.3","rttc":"^8.1.7","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^1.4.0","mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"bfcb62c0fddd1ca44ed3cf0d0aad18e5fa5e239f","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@2.0.0","_shasum":"d3689ad855170c4ab32a7c8c4de5693584fc6825","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"d3689ad855170c4ab32a7c8c4de5693584fc6825","size":5586,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-2.0.0.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{},"publish_time":1438962927515,"_cnpm_publish_time":1438962927515,"_hasShrinkwrap":false},"1.2.0":{"name":"machine-as-script","version":"1.2.0","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"bin":{"machine-as-script":"./bin/machine-as-script.js"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"^11.0.1","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^1.4.0","mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"372b0d3b800590c09cd0c585ccfe76cf10c92269","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@1.2.0","_shasum":"f91439c0ea22ecbc7cd52670b78b2c057cdbb331","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"f91439c0ea22ecbc7cd52670b78b2c057cdbb331","size":3065,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-1.2.0.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{},"publish_time":1437549317414,"_cnpm_publish_time":1437549317414,"_hasShrinkwrap":false},"1.1.2":{"name":"machine-as-script","version":"1.1.2","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"^11.0.1","yargs":"3.4.5"},"devDependencies":{"machinepack-process":"^1.4.0","mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"57d37696316768dcd5c8a982c326b6f238722e61","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@1.1.2","_shasum":"335b4f74ab4d6c0dd8a2ccb2d7065ef2261037ad","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"335b4f74ab4d6c0dd8a2ccb2d7065ef2261037ad","size":2853,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-1.1.2.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{},"publish_time":1437424022362,"_cnpm_publish_time":1437424022362,"_hasShrinkwrap":false},"1.1.1":{"name":"machine-as-script","version":"1.1.1","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"^10.4.0","yargs":"3.4.5"},"devDependencies":{"mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"b6504a317a501b795799f3b354cb0d6705e77110","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@1.1.1","_shasum":"63e1bb58f61c7bb5b4fb36d5bfaf601f27e61bf2","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"63e1bb58f61c7bb5b4fb36d5bfaf601f27e61bf2","size":2769,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-1.1.1.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{},"publish_time":1436983831346,"_cnpm_publish_time":1436983831346,"_hasShrinkwrap":false},"1.1.0":{"name":"machine-as-script","version":"1.1.0","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"^10.4.0","yargs":"3.4.5"},"devDependencies":{"mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"052b5fbd856ecc1a98eea65d4a4227b2e2ed08cf","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@1.1.0","_shasum":"4841a1787a885e3713559e11053d529e9e846fe6","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"4841a1787a885e3713559e11053d529e9e846fe6","size":2749,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-1.1.0.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{},"publish_time":1436965002746,"_cnpm_publish_time":1436965002746,"_hasShrinkwrap":false},"1.0.4":{"name":"machine-as-script","version":"1.0.4","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"^10.4.0","yargs":"3.4.5"},"devDependencies":{"mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"345b8d27cde0e2c982a4178a949586377956156b","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@1.0.4","_shasum":"768f22bcdbcf6ec0edd38d27db58e555f7a65739","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"768f22bcdbcf6ec0edd38d27db58e555f7a65739","size":2539,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-1.0.4.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{},"publish_time":1436816175733,"_cnpm_publish_time":1436816175733,"_hasShrinkwrap":false},"1.0.3":{"name":"machine-as-script","version":"1.0.3","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"^10.0.0","yargs":"3.4.5"},"devDependencies":{"mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"92b8259d8ca08464bdc53e40229c939b1ade37e9","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@1.0.3","_shasum":"fdf41da89e9c6285bdef5ce4300f181832240949","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"fdf41da89e9c6285bdef5ce4300f181832240949","size":2543,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-1.0.3.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{},"publish_time":1434743565628,"_cnpm_publish_time":1434743565628,"_hasShrinkwrap":false},"1.0.2":{"name":"machine-as-script","version":"1.0.2","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"^7.1.0","yargs":"3.4.5"},"devDependencies":{"mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"97c5389728beefb0456faf34dda08e767abc5de8","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@1.0.2","_shasum":"9147818484922117eb6b6675486463d9d1e1b511","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"9147818484922117eb6b6675486463d9d1e1b511","size":2541,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-1.0.2.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{},"publish_time":1431990379417,"_cnpm_publish_time":1431990379417,"_hasShrinkwrap":false},"1.0.1":{"name":"machine-as-script","version":"1.0.1","description":"Run a machine as a command-line script.","scripts":{"test":"node ./node_modules/mocha/bin/mocha"},"keywords":["machine","script","cli"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"chalk":"0.5.1","commander":"2.6.0","lodash":"^3.8.0","machine":"^6.0.1","yargs":"3.4.5"},"devDependencies":{"mocha":"^2.2.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/treelinehq/machine-as-script.git"},"gitHead":"5d99e2e0c4a73625499fa48697cef06fe29e083e","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"homepage":"https://github.com/treelinehq/machine-as-script#readme","_id":"machine-as-script@1.0.1","_shasum":"920370e869ce02dbc78d4aaf033ebdb2bc41147d","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"920370e869ce02dbc78d4aaf033ebdb2bc41147d","size":2537,"noattachment":false,"key":"/machine-as-script/-/machine-as-script-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/machine-as-script/download/machine-as-script-1.0.1.tgz"},"maintainers":[{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{},"publish_time":1431525266715,"_cnpm_publish_time":1431525266715,"_hasShrinkwrap":false}},"readme":"# machine-as-script\n\nRun any machine as a command-line script.\n\nUseful for running jobs (cron, Heroku scheduler), automating repetitive tasks (Grunt, gulp), writing one-off scripts (NPM, Chef), and building production-ready tools with command-line interfaces (e.g. `treeline`, `machinepack`).  Supports _serial command-line arguments_, command-line opts (`--`), and environment variables.\n\n\n```sh\n$ npm install machine-as-script --save\n```\n\n> New to Node?  Check out [**Getting Started With machine-as-script** from NPM](https://www.npmjs.com/package/machine-as-script/tutorial).\n\n\n## Usage\n\n```js\n#!/usr/bin/env node\n\nvar MPMath = require('machinepack-math');\n\nrequire('machine-as-script')({\n  machine: MPMath.add\n}).exec({\n  success: function (sum){\n    console.log('Got result:', sum);\n  }\n});\n```\n\nNow you can run your machine as a script and provide input values as command-line opts:\n\n```sh\n$ node ./add-numbers.js --a=4 --b=5\n# Got result: 9\n```\n\n> Note that the machine definition you provide here doesn't have to come from an already-published machinepack-- it can be required locally from your project, or declared inline.\n\n\n\n##### Assorted examples\n\nIt's all well and good to build command-line scripts that do simple arithmetic, but what about something more practical?  Here are a few real-world examples of `machine-as-script` in practice:\n\n+ https://github.com/node-machine/machinepack/blob/93a7132117546ed897fa8391997d0b8aa301d6e4/bin/machinepack-browserify.js\n+ https://github.com/node-machine/machinepack/blob/93a7132117546ed897fa8391997d0b8aa301d6e4/bin/machinepack-compare.js\n+ https://github.com/treelinehq/treeline/blob/32b8760504c46e9816ec89a1dc8e301e0c34f62a/bin/treeline-browse.js\n+ https://github.com/treelinehq/treeline/blob/763b293615e4b26339998a1384919cf958402ba8/bin/treeline-login.js\n\n\n\n## Available Options\n\nAside from the [normal properties that go into a Node Machine definition](http://node-machine.org/spec), the following additional options are supported:\n\n| Option            | Type            | Description                                            |\n|:------------------|-----------------|:-------------------------------------------------------|\n| `machine`         | ((dictionary?)) | If specified, `machine-as-script` will use this as the machine definition.  Otherwise by default, it expects the machine definition to be passed in at the top-level. In that case, the non-standard (machine-as-script-specific) options are omitted when the machine is built).\n| `args`            | ((array?))      | The names of inputs, in order, to use for handling serial command-line arguments (more on that [below](#using-serial-command-line-arguments)).\n| `envVarNamespace` | ((string?))     | The namespace to use when mapping environment variables to runtime arguments for particular inputs (more on that [below](#using-system-environment-variables)).\n| `sails`           | ((SailsApp?))   | Only relevant if the machine def declares `habitat: 'sails'`.  This is the Sails app instance that will be provided to this machine as a habitat variable (`env.sails`).  In most cases, if you are using this, you'll want to set it to `require('sails').  The Sails app instance will be automatically loaded before running the machine, and automatically lowered as soon as the machine exits.\n\n\n\n## Using serial command-line arguments\n\nIn addition to specifying inputs as `--` command-line opts, you can configure your script to accept _serial command-line arguments_.\n\nJust specify `args` as an array of input names, in the expected order:\n\n```js\nasScript({\n  machine: MPMath.add,\n  args: ['a', 'b']\n}).exec({\n  success: function (sum){\n    console.log('Got result:', sum);\n  }\n});\n```\n\nNow you can use serial command-line arguments to configure the related inputs:\n\n```sh\n$ node ./add-numbers.js 4 5\n# Got result: 9\n```\n\n\n#### Serial command-line arguments with dynamic arity\n\nSometimes, it's useful to be able to get _all_ serial command-line arguments, without having to declare your script's expectations beforehand.\n\nFor example, in the example above, we might want to support adding an infinite number of numbers delimited by spaces on the command line:\n\n```sh\n$ node ./add-numbers.js 4 5 10 -2382 31.482 13 48 139 13 1\n```\n\nTo help you accomplish this, `machine-as-script` injects all serial command-line arguments via a special\nhabitat variable (`env.serialCommandLineArgs`).  Your machine can then loop over this array of strings\nand behave accordingly:\n\n```js\nasScript({\n  \n  description: 'Sum all of the provided numbers.',\n\n  exits: {\n    \n    success: {\n      outputDescription: 'The sum of all the numbers that were specified via serial command-line args.',\n      outputExample: 9\n    },\n\n    invalidNumber: {\n      description: 'One of the provided command-line args could not be parsed as a number.'\n    }\n\n  },\n\n  fn: function (inputs, exits, env){\n\n    var aimErrorAt = require('aim-error-at');\n\n    var sum = env.serialCommandLineArgs.reduce(function (memo, numberHopefully){\n      var num = +numberHopefully;\n      if (Number.isNaN(num)) {\n        throw aimErrorAt('invalidNumber', new Error('Could not parse `'+numberHopefully+'` as a number.'));\n      }\n      memo += num;\n      return memo;\n    });\n\n    return exits.success(sum);\n\n  }\n\n}).exec({\n  success: function (sum){\n    console.log('Got result:', sum);\n  }\n});\n```\n\nNote that `env.serialCommandLineArgs` is not affected by the `args` directive.  In other words, it is _always_ an\narray of strings, even if the `args` directive was provided and pointed at inputs w/ different types of examples\n(e.g. numbers, dictionaries, etc.).\n\n\n> ###### Compatibility\n>\n> + This habitat variable is the evolution of the `args` input from <=v3.\n> + Prior to v5, this was provided as `env.commandLineArgs` for a short period of time.\n\n\n\n\n## Using system environment variables\n\nSometimes (particularly in a production setting, like on Heroku) you want to be able to\nuse your machine as a script without specifying serial command-line arguments or checking in\ncredentials or other configuration details to source control.  This is typically accomplished\nusing environment variables.\n\nWhen using `machine-as-script`, as an alternative to command-line opts, you can specify input values\nusing environment variables:\n\n```sh\n$ ___a=4 ___b=5 node ./add-numbers.js\n# Got result: 9\n```\n\nEnvironment variables work exactly like command-line opts, with the same escaping rules for specifying JSON arrays and dictionaries.\n\n\n##### Setting a namespace\n\nIt's usually a good idea to namespace the environment variables specific to your application.\nEspecially since many inputs have fairly common names (_as they should!_), it's helpful to use a prefix to avoid conflicts with env variables used by other processes.\n\nThe default namespace is 3 underscores (`___`).  In other words, if your machine has an input `foo`, then you could configure that input using the environment variable named `___foo`.\n\nTo customize the namespace for your script, just specify an `envVarNamespace`:\n\n```js\nasScript({\n  machine: MPMath.add,\n  envVarNamespace: 'add_numbers__'\n}).exec({\n  success: function (sum){\n    console.log('Got result:', sum);\n  }\n});\n```\n\nNow your custom string will be the expected namespace for environment variables:\n\n```sh\n$ add_numbers__a=4 add_numbers__b=5 node ./add-numbers.js\n# Got result: 9\n```\n\n\n\n##### A note on case-sensitivity\n\nNote that input code names are _case-sensitive_, and therefore the names of environment variables understood by this module are also case-sensitive.\n\n[On Windows, the names of environment variables are capitalized/case-insensitive](https://en.wikipedia.org/wiki/Environment_variable#DOS), so you may have difficulties using this approach.  I'm happy to help in the implementation of a workaround if you need this and have any ideas for how to do it (hit me up [on Twitter](http://twitter.com/mikermcneil)).\n\n\n\n## Configuring non-string values\n\nSo it's really easy to see how string input values can be configured using command-line opts, arguments, or environment variables.  But more often than not, when configuring a script, you need to specify an input value that _isn't_ a string-- things like arrays, dictionaries, booleans, and numbers.\n\nThis module lets you configure _any_ input value-- even lamdas.  Internally, it uses the [`parseHuman()` method from `rttc`](https://github.com/node-machine/rttc#parsehumanstringfromhuman-typeschemaundefined-unsafemodefalse).  For a more detailed look at the exact rules, check out the README in the rttc repo.  Below, we look at one example for each of the major use cases you're likely to run into.\n\n##### Numeric inputs\n\n```sh\n$ node ./add-numbers.js --a='4' --b='5'\n```\n\n##### Boolean inputs\n\n```sh\n$ node ./divide-numbers.js --a='9' --b='5' --useFloatingPoint='false'\n```\n\n##### Lamda (`->`) inputs\n\n```sh\n$ node ./each.js --array='[]' --iteratee='function (thing){ return thing.foo; }'\n```\n\n##### Dictionary (`{}`) and array (`[]`) inputs\n\nIf an input is expecting a dictionary or array (i.e. its example is a dictionary or array), then its value should be specified as JSON.\n\n```sh\n$ node ./count-keys.js --someDictionary='{\"this\": {\"must\": [\"be\",\"JSON\",\"encoded\"]}}'\n```\n\n```sh\n$ node ./count-items.js --someArray='[\"this\",\"must\",\"be\",\"JSON\",\"encoded\",\"too\"]'\n```\n\n##### JSON (`*`) inputs\n\nIf an input is expecting generic JSON (i.e. its example is `'*'`), then its value should be specified as JSON-- even if that value is a simple string, number, or boolean.\n\n```sh\n$ node ./is-null.js --value='{w: true, x: null, y: \"some string\", z: 34}'\n```\n\n```sh\n$ node ./is-null.js --value='[\"should be json encoded\", 4, null]'\n```\n\n```sh\n$ node ./is-null.js --value='\"even if it is a string\"'\n```\n\n```sh\n$ node ./is-null.js --value='22353'\n```\n\n```sh\n$ node ./is-null.js --value='true'\n```\n\n```sh\n$ node ./is-null.js --value='null'\n```\n\n\n##### Mutable reference (`===`) inputs\n\nFor the automatic console output of machine-as-script, mutable reference inputs work just like JSON (`*`) inputs. For custom behavior, just override the automatic handling using `.exec()`.\n\nTo learn more about rttc types, check out the [rttc README on GitHub](https://github.com/node-machine/rttc).\n\n\n\n\n## Misc\n\n\n##### Escaping your input values\n\nThe rules for escaping env vars, command-line opts, and serial command-line arguments can vary across operating systems.  However, a good reference point is the [escape machine in mp-process](http://node-machine.org/machinepack-process/escape).  That's what the `machinepack` command-line tool uses internally for creating code samples after a machine is run using `mp exec`.\n\n\n##### Precedence\n\nIt's always best to keep things simple.  In keeping with that spirit, you should never _intentionally_ use both environment variables AND command-line opts/args to configure your script. But weird things are unavoidable, and when debugging, it's helpful to know more about the tools you use in case something jumps out.\n\nStarting from the highest precedence, here is a list of how this module prioritizes your input configurations:\n\n1. Serial command-line arguments (`./my-script.js bar`)\n2. System environment variables (`foo=bar ./my-script.js`)\n3. Command-line opts (`./my-script.js --foo='bar'`)\n\n\nIn other words, if you specify the same input as a serial command-line argument AND as a system environment variable or command-line opt, the serial argument will always \"win\".  And if you specify the same input as a system environment variable and command-line opt, the system environment variable will always win.\n\n\n##### How it works\n\n`machine-as-script` works by building a modified version of a machine instance that, when you call `.exec()`, will proxy its input values from serial command-line arguments (`myscript bar`), command-line opts (`myscript --foo='bar'`), and/or system environment variables (`___foo='bar' myscript`).\n\n##### Conventions\n\nYou should almost always call `.exec()` immediately after using `machine-as-script`, in the same file.  If you are building a command-line tool, it is conventional to keep these files in your project's `bin/` directory (see the `treeline` and `machinepack` CLI tools on NPM for examples).\n\nIf, when you call `.exec()`, you omit a callback for a non-standard exit, the standard behavior of the machine runner applies.  If you omit `error` or `success`, machine-as-script will attempt its best guess at appropriate output by using exit metadata + introspecting runtime output.  Similarly, runtime input values are validated vs. the exemplars and requiredness in the machine's input definitions.\n\n\n## Support\n\nFor more help, check out the [node-machine newsgroup](https://groups.google.com/forum/#!forum/node-machine) and [http://node-machine.org](http://node-machine.org).\n\n\n\n## License\n\nMIT &copy; 2015-2016 Mike McNeil, The Treeline Co.\n","_attachments":{},"homepage":"https://github.com/treelinehq/machine-as-script#readme","bugs":{"url":"https://github.com/treelinehq/machine-as-script/issues"},"license":"MIT"}