{"_id":"did_it_work","_rev":"1747275","name":"did_it_work","description":"A simple process launcher that determines whether the process succeeded or failed.","dist-tags":{"latest":"0.0.6"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}],"time":{"modified":"2026-11-21T01:07:31.000Z","created":"2013-04-26T16:25:31.431Z","0.0.6":"2013-06-20T02:29:23.612Z","0.0.5":"2013-06-08T12:50:56.699Z","0.0.4":"2013-06-08T12:40:42.997Z","0.0.3":"2013-04-29T07:47:56.420Z","0.0.2":"2013-04-29T07:10:41.838Z","0.0.1":"2013-04-26T16:25:31.431Z"},"users":{},"author":{"name":"Toby Ho"},"repository":"","versions":{"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"},"readmeFilename":"README.md","_id":"did_it_work@0.0.6","dist":{"shasum":"5180cb9e16ebf9a8753a0cc6b4af9ccdff71ec05","tarball":"http://registry-npm.ywwl.com/did_it_work/download/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="}],"size":3037,"noattachment":false,"key":"/did_it_work/-/did_it_work-0.0.6.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}],"publish_time":1371695363612,"_cnpm_publish_time":1371695363612},"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"},"readmeFilename":"README.md","_id":"did_it_work@0.0.5","dist":{"shasum":"5db190e0c69a98f8106f5431dc085ebe3bc238a2","tarball":"http://registry-npm.ywwl.com/did_it_work/download/did_it_work-0.0.5.tgz","integrity":"sha512-AyKkXyP2FtMARcj9VPttd/aAfZedoposFtS43PGsw+Gaasl3J9p7UQzBPCyTOUpVHsusy14gI77X0lAmuaTaHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUmU6ZCXl0MNlsAGGhENrPKPSCzPVwkQcJwPNH9ylQUQIgIwZ31+0WGnfWFfuORQPSjzIcHjU5PXr0vW8zdT3vHrE="}],"size":3024,"noattachment":false,"key":"/did_it_work/-/did_it_work-0.0.5.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}],"publish_time":1370695856699,"_cnpm_publish_time":1370695856699},"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"},"readmeFilename":"README.md","_id":"did_it_work@0.0.4","dist":{"shasum":"4a1f3135858f3caa9e156d7ffc82a2ccf35e15b2","tarball":"http://registry-npm.ywwl.com/did_it_work/download/did_it_work-0.0.4.tgz","integrity":"sha512-EyHkptz15PmVUUH7lh95EAgaixcpCBKM5gsoqIkcUz3EHIRi57U7MDabwLE5hCpOQaJrDhJMFHynYQtBywyFZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVgpWU/LHdzxKJrlMM5/8Yiub0yvzWOTiwBNleQUygaQIgGVioyMHcgfeRVZVxq70u9c+ysDi5/G1zC0jDS6xlLxQ="}],"size":2954,"noattachment":false,"key":"/did_it_work/-/did_it_work-0.0.4.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}],"publish_time":1370695242997,"_cnpm_publish_time":1370695242997},"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"},"readmeFilename":"README.md","_id":"did_it_work@0.0.3","dist":{"shasum":"04b8311ff5612227a7f32b2eec75d2eda99355cd","tarball":"http://registry-npm.ywwl.com/did_it_work/download/did_it_work-0.0.3.tgz","integrity":"sha512-EzdCBQmwuCwrE00ETINU9U/6VFx4AFAP+MNj2ZePd7Vk/Olzvdk7IW4tSEPu0ws9aIQPb2p3N6hBcCoDlmzWpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5gbWlNCpt+bR+AvpLoAnSUJx37jJkROBtetSrt+ps5QIhAKTE5g2nhgegVHZmETxbBlOyXeW/06CvUTgLtCQ+7b1A"}],"size":2813,"noattachment":false,"key":"/did_it_work/-/did_it_work-0.0.3.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}],"publish_time":1367221676420,"_cnpm_publish_time":1367221676420},"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"},"readmeFilename":"README.md","_id":"did_it_work@0.0.2","dist":{"shasum":"9d4b133af6dd17bf86750e51a2b7e9d6755c8589","tarball":"http://registry-npm.ywwl.com/did_it_work/download/did_it_work-0.0.2.tgz","integrity":"sha512-t2/7byz84KorQ0OthmCWmc9SaC82sR2v/afmyWuTB8uXe1S0q41ykFfrAg0o68Zrcj4nFiaG29ExNmwBDAR0gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5ufOrKMJ9eRVsX5+gdwUUAVgR+LUl/Nqb+N2r7eJC2wIgcCbx1Ucw8H4TAfpZ43JGIPvk0WAiTfLMcGYNCbrQDzM="}],"size":2677,"noattachment":false,"key":"/did_it_work/-/did_it_work-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}],"publish_time":1367219441838,"_cnpm_publish_time":1367219441838},"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","dist":{"shasum":"901010b3fb1a5257cd76758274f7d6910e9c5464","tarball":"http://registry-npm.ywwl.com/did_it_work/download/did_it_work-0.0.1.tgz","integrity":"sha512-Ap71sghv4do2xVKWk4plMjVBNrokVyklgJpUCGXK9uktfqOohJMF0opW2K0ahxKBaSMV4bT8MmOHO1sHSe+Txw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5ObNpK80WC81iCymV27QT2krCuaeWPaw4DLgyGtEtQgIhAIRo8NObzEPbVbD/MZ9tBUN5Dvg2lyBtjl56wSqEBh5/"}],"size":1776,"noattachment":false,"key":"/did_it_work/-/did_it_work-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"airportyh","email":"airportyh@gmail.com"},"maintainers":[{"name":"airportyh","email":"airportyh@gmail.com"}],"publish_time":1366993531431,"_cnpm_publish_time":1366993531431}},"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`.","_attachments":{},"readmeFilename":"README.md","license":"MIT"}