UNPKG

ember-cli-ajh

Version:

Command line tool for developing ambitious ember.js apps

74 lines (73 loc) 3.14 kB
{ "_args": [ [ { "raw": "did_it_work@0.0.6", "scope": null, "escapedName": "did_it_work", "name": "did_it_work", "rawSpec": "0.0.6", "spec": "0.0.6", "type": "version" }, "/Users/ahogan/Repos/ember-cli/node_modules/testem" ] ], "_from": "did_it_work@0.0.6", "_id": "did_it_work@0.0.6", "_inCache": true, "_location": "/did_it_work", "_npmUser": { "name": "airportyh", "email": "airportyh@gmail.com" }, "_npmVersion": "1.2.32", "_phantomChildren": {}, "_requested": { "raw": "did_it_work@0.0.6", "scope": null, "escapedName": "did_it_work", "name": "did_it_work", "rawSpec": "0.0.6", "spec": "0.0.6", "type": "version" }, "_requiredBy": [ "/testem" ], "_resolved": "https://registry.npmjs.org/did_it_work/-/did_it_work-0.0.6.tgz", "_shasum": "5180cb9e16ebf9a8753a0cc6b4af9ccdff71ec05", "_shrinkwrap": null, "_spec": "did_it_work@0.0.6", "_where": "/Users/ahogan/Repos/ember-cli/node_modules/testem", "author": { "name": "Toby Ho" }, "dependencies": {}, "description": "A simple process launcher that determines whether the process succeeded or failed.", "devDependencies": { "chai": "~1.5.0" }, "directories": {}, "dist": { "shasum": "5180cb9e16ebf9a8753a0cc6b4af9ccdff71ec05", "tarball": "https://registry.npmjs.org/did_it_work/-/did_it_work-0.0.6.tgz" }, "license": "MIT", "main": "index.js", "maintainers": [ { "name": "airportyh", "email": "airportyh@gmail.com" } ], "name": "did_it_work", "optionalDependencies": {}, "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", "repository": "", "scripts": { "test": "mocha -u tdd tests.js" }, "version": "0.0.6" }