Skip to content

Commit

Permalink
0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocasciaro committed Apr 5, 2014
1 parent 7e613d3 commit 226f187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions README.md
Expand Up @@ -13,7 +13,8 @@ var spawned = require('spawned');
spawned('echo', ['test'])
.then(function(proc) {
console.log("Did it work? " + ((proc.out.match(/test/))? "yes" : "no"));
}).otherwise(function(err) {
})
.catch(function(err) {
console.log("Boooooom");
console.error(err.err);
});
Expand All @@ -40,8 +41,4 @@ Spawn a new process and returns a promise.
* `out`: `String` containig `stdout`
* `combined`: `String` containing the intermingled contents of `stdout` and `stderr`
* `code`: `Number` the return code of the program
* when **rejected** resolved to an `Error` having the same properties as above.

---

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/mariocasciaro/spawned/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
* when **rejected** resolves to an `Error` having the same properties as above.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "spawned",
"description": "Smart wrapper around child_process.spawn using promises",
"version": "0.1.1",
"version": "0.1.2",
"author": {
"name": "Mario Casciaro"
},
Expand Down

0 comments on commit 226f187

Please sign in to comment.