Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[doc] README and LICENSE

  • Loading branch information...
commit c329daf7012fb52c386e9581243827a5d04c62a2 1 parent e063c44
Maciej Małecki authored
Showing with 39 additions and 0 deletions.
  1. +19 −0 LICENSE
  2. +20 −0 README.md
19 LICENSE
View
@@ -0,0 +1,19 @@
+Copyright (C) 2011 by Maciej Małecki
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
20 README.md
View
@@ -0,0 +1,20 @@
+# spawn-command [![Build Status](https://secure.travis-ci.org/mmalecki/spawn-command.png)](http://travis-ci.org/mmalecki/spawn-command)
+Spawn commands like `child_process.exec` does but return a `ChildProcess`.
+
+## Installation
+
+ npm install spawn-command
+
+## Usage
+```js
+var spawnCommand = require('spawn-command'),
+ child = spawnCommand('echo "Hello spawn" | base64');
+
+child.on('stdout', function (data) {
+ console.log('data', data);
+});
+
+child.on('exit', function (exitCode) {
+ console.log('exit', exitCode);
+});
+```
Please sign in to comment.
Something went wrong with that request. Please try again.