{"_id":"did_it_work","_rev":"15-16e88a97fc299e1ff55d6b5f5e21cb62","name":"did_it_work","description":"A simple process launcher that determines whether the process succeeded or failed.","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"did_it_work","version":"0.0.1","description":"A simple process launcher that determines whether the process succeeded or failed.","main":"index.js","scripts":{"test":"mocha -u tdd tests.js"},"repository":"","author":{"name":"Toby Ho"},"license":"MIT","dependencies":{},"devDependencies":{"chai":"~1.5.0"},"_id":"did_it_work@0.0.1","readme":"ERROR: No README.md file found!","dist":{"shasum":"901010b3fb1a5257cd76758274f7d6910e9c5464","tarball":"https://registry.npmjs.org/did_it_work/-/did_it_work-0.0.1.tgz","integrity":"sha512-Ap71sghv4do2xVKWk4plMjVBNrokVyklgJpUCGXK9uktfqOohJMF0opW2K0ahxKBaSMV4bT8MmOHO1sHSe+Txw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5ObNpK80WC81iCymV27QT2krCuaeWPaw4DLgyGtEtQgIhAIRo8NObzEPbVbD/MZ9tBUN5Dvg2lyBtjl56wSqEBh5/"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}]},"0.0.2":{"name":"did_it_work","version":"0.0.2","description":"A simple process launcher that determines whether the process succeeded or failed.","main":"index.js","scripts":{"test":"mocha -u tdd tests.js"},"repository":"","author":{"name":"Toby Ho"},"license":"MIT","dependencies":{},"devDependencies":{"chai":"~1.5.0"},"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`.","readmeFilename":"README.md","_id":"did_it_work@0.0.2","dist":{"shasum":"9d4b133af6dd17bf86750e51a2b7e9d6755c8589","tarball":"https://registry.npmjs.org/did_it_work/-/did_it_work-0.0.2.tgz","integrity":"sha512-t2/7byz84KorQ0OthmCWmc9SaC82sR2v/afmyWuTB8uXe1S0q41ykFfrAg0o68Zrcj4nFiaG29ExNmwBDAR0gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5ufOrKMJ9eRVsX5+gdwUUAVgR+LUl/Nqb+N2r7eJC2wIgcCbx1Ucw8H4TAfpZ43JGIPvk0WAiTfLMcGYNCbrQDzM="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}]},"0.0.3":{"name":"did_it_work","version":"0.0.3","description":"A simple process launcher that determines whether the process succeeded or failed.","main":"index.js","scripts":{"test":"mocha -u tdd tests.js"},"repository":"","author":{"name":"Toby Ho"},"license":"MIT","dependencies":{},"devDependencies":{"chai":"~1.5.0"},"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`.","readmeFilename":"README.md","_id":"did_it_work@0.0.3","dist":{"shasum":"04b8311ff5612227a7f32b2eec75d2eda99355cd","tarball":"https://registry.npmjs.org/did_it_work/-/did_it_work-0.0.3.tgz","integrity":"sha512-EzdCBQmwuCwrE00ETINU9U/6VFx4AFAP+MNj2ZePd7Vk/Olzvdk7IW4tSEPu0ws9aIQPb2p3N6hBcCoDlmzWpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5gbWlNCpt+bR+AvpLoAnSUJx37jJkROBtetSrt+ps5QIhAKTE5g2nhgegVHZmETxbBlOyXeW/06CvUTgLtCQ+7b1A"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}]},"0.0.4":{"name":"did_it_work","version":"0.0.4","description":"A simple process launcher that determines whether the process succeeded or failed.","main":"index.js","scripts":{"test":"mocha -u tdd tests.js"},"repository":"","author":{"name":"Toby Ho"},"license":"MIT","dependencies":{},"devDependencies":{"chai":"~1.5.0"},"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`.","readmeFilename":"README.md","_id":"did_it_work@0.0.4","dist":{"shasum":"4a1f3135858f3caa9e156d7ffc82a2ccf35e15b2","tarball":"https://registry.npmjs.org/did_it_work/-/did_it_work-0.0.4.tgz","integrity":"sha512-EyHkptz15PmVUUH7lh95EAgaixcpCBKM5gsoqIkcUz3EHIRi57U7MDabwLE5hCpOQaJrDhJMFHynYQtBywyFZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVgpWU/LHdzxKJrlMM5/8Yiub0yvzWOTiwBNleQUygaQIgGVioyMHcgfeRVZVxq70u9c+ysDi5/G1zC0jDS6xlLxQ="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}]},"0.0.5":{"name":"did_it_work","version":"0.0.5","description":"A simple process launcher that determines whether the process succeeded or failed.","main":"index.js","scripts":{"test":"mocha -u tdd tests.js"},"repository":"","author":{"name":"Toby Ho"},"license":"MIT","dependencies":{},"devDependencies":{"chai":"~1.5.0"},"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`.","readmeFilename":"README.md","_id":"did_it_work@0.0.5","dist":{"shasum":"5db190e0c69a98f8106f5431dc085ebe3bc238a2","tarball":"https://registry.npmjs.org/did_it_work/-/did_it_work-0.0.5.tgz","integrity":"sha512-AyKkXyP2FtMARcj9VPttd/aAfZedoposFtS43PGsw+Gaasl3J9p7UQzBPCyTOUpVHsusy14gI77X0lAmuaTaHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUmU6ZCXl0MNlsAGGhENrPKPSCzPVwkQcJwPNH9ylQUQIgIwZ31+0WGnfWFfuORQPSjzIcHjU5PXr0vW8zdT3vHrE="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}]},"0.0.6":{"name":"did_it_work","version":"0.0.6","description":"A simple process launcher that determines whether the process succeeded or failed.","main":"index.js","scripts":{"test":"mocha -u tdd tests.js"},"repository":"","author":{"name":"Toby Ho"},"license":"MIT","dependencies":{},"devDependencies":{"chai":"~1.5.0"},"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`.","readmeFilename":"README.md","_id":"did_it_work@0.0.6","dist":{"shasum":"5180cb9e16ebf9a8753a0cc6b4af9ccdff71ec05","tarball":"https://registry.npmjs.org/did_it_work/-/did_it_work-0.0.6.tgz","integrity":"sha512-iZbgl1eRQ7Blv3eSRhisJa77nvAy1Oo/nmUhtLDEsLFFIhVKSeg6Z5I4gnM1FDSihmBLy/DywuGEd2DNnTU+8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr/Q6KeOerlvfa3efdL/EUq+FjCIX2tn2h2DOCp2OSpwIgBva/3T+S5C1xfqQ7hSC749CCkTFAsvrDuo8X4yR++Ro="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}]}},"readme":"ERROR: No README.md file found!","maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}],"time":{"modified":"2022-06-15T03:32:06.861Z","created":"2013-04-26T16:25:30.534Z","0.0.1":"2013-04-26T16:25:31.431Z","0.0.2":"2013-04-29T07:10:41.838Z","0.0.3":"2013-04-29T07:47:56.420Z","0.0.4":"2013-06-08T12:40:42.997Z","0.0.5":"2013-06-08T12:50:56.699Z","0.0.6":"2013-06-20T02:29:23.612Z"},"author":{"name":"Toby Ho"}}