{"dist":{"shasum":"4a1f3135858f3caa9e156d7ffc82a2ccf35e15b2","tarball":"https://registry.npmjs.org/did_it_work/-/did_it_work-0.0.4.tgz","integrity":"sha512-EyHkptz15PmVUUH7lh95EAgaixcpCBKM5gsoqIkcUz3EHIRi57U7MDabwLE5hCpOQaJrDhJMFHynYQtBywyFZw==","signatures":[{"sig":"MEUCIQCVgpWU/LHdzxKJrlMM5/8Yiub0yvzWOTiwBNleQUygaQIgGVioyMHcgfeRVZVxq70u9c+ysDi5/G1zC0jDS6xlLxQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"did_it_work","_from":".","author":{"name":"Toby Ho"},"readme":"Did It Work?\n============\n\n***Did it Work?***: A simple process launcher that determines whether the process succeeded or failed.\n\nInstall\n-------\n\n    npm install did_it_work\n\nUsage\n-----\n\n    var process = require('did_it_work');\n\n    process('my_awesome_program')\n      .goodIfMatches(/Ready/, 1000)\n      .badIfMatches(/Error/)\n      .good(function(){\n        console.log('The program worked (because it spat out \"Ready\" to stdout within 1000ms).')\n      })\n      .bad(function(){\n        console.log('The program didn\\'t work (because it spat out \"Error\" to stdout, or the program exited with non-zero code, or it didn\\'t spit out \"Ready\" within 1000ms)')\n      })\n      .complete(function(){\n        console.log('In any case, the program exited')\n      })\n\nUse `spawn` instead of `exec`\n-----------------------------\n\nIf you pass one string argument to the function, it will use `child_process.exec` to create the process. If, on the other hand, you need to use `child_process.spawn`, pass two arguments instead, the first being the executable and the second being an array of arguments. Example\n\n    process('echo', ['hello', 'world'])\n      .complete(function(stdout){\n        console.log('The program returned ' + stdout)\n      })\n\nRTFT\n----\n\nTo see more, read the tests in `tests.js`.","license":"MIT","scripts":{"test":"mocha -u tdd tests.js"},"_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"repository":"","_npmVersion":"1.2.18","description":"A simple process launcher that determines whether the process succeeded or failed.","maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}],"dependencies":{},"readmeFilename":"README.md","devDependencies":{"chai":"~1.5.0"},"_id":"did_it_work@0.0.4","version":"0.0.4"}