aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/spawn-command
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/spawn-command')
-rw-r--r--node_modules/spawn-command/.npmignore4
-rw-r--r--node_modules/spawn-command/.travis.yml5
-rw-r--r--node_modules/spawn-command/LICENSE19
-rw-r--r--node_modules/spawn-command/README.md20
-rw-r--r--node_modules/spawn-command/examples/simple.js11
-rw-r--r--node_modules/spawn-command/lib/spawn-command.js17
-rw-r--r--node_modules/spawn-command/package.json13
-rw-r--r--node_modules/spawn-command/test/fixtures/commit9
-rw-r--r--node_modules/spawn-command/test/spawn-command-test.js26
9 files changed, 0 insertions, 124 deletions
diff --git a/node_modules/spawn-command/.npmignore b/node_modules/spawn-command/.npmignore
deleted file mode 100644
index b7cb965..0000000
--- a/node_modules/spawn-command/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-npm-debug.log
-node_modules
-.DS_Store
-.*.sw[op]
diff --git a/node_modules/spawn-command/.travis.yml b/node_modules/spawn-command/.travis.yml
deleted file mode 100644
index 84fd7ca..0000000
--- a/node_modules/spawn-command/.travis.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-language: node_js
-node_js:
- - 0.6
- - 0.8
- - 0.9
diff --git a/node_modules/spawn-command/LICENSE b/node_modules/spawn-command/LICENSE
deleted file mode 100644
index 33f3be7..0000000
--- a/node_modules/spawn-command/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-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.
diff --git a/node_modules/spawn-command/README.md b/node_modules/spawn-command/README.md
deleted file mode 100644
index 2e172bd..0000000
--- a/node_modules/spawn-command/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# 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.stdout.on('data', function (data) {
- console.log('data', data);
-});
-
-child.on('exit', function (exitCode) {
- console.log('exit', exitCode);
-});
-```
diff --git a/node_modules/spawn-command/examples/simple.js b/node_modules/spawn-command/examples/simple.js
deleted file mode 100644
index 96fab54..0000000
--- a/node_modules/spawn-command/examples/simple.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var spawnCommand = require('../'),
- command = (process.platform === 'win32') ? 'echo "Hello spawn"' : 'echo "Hello spawn" | base64',
- child = spawnCommand(command);
-
-child.stdout.on('data', function (data) {
- console.log('data', data.toString());
-});
-
-child.on('exit', function (exitCode) {
- console.log('exit', exitCode);
-});
diff --git a/node_modules/spawn-command/lib/spawn-command.js b/node_modules/spawn-command/lib/spawn-command.js
deleted file mode 100644
index 24d56ab..0000000
--- a/node_modules/spawn-command/lib/spawn-command.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var util = require('util');
-var spawn = require('child_process').spawn;
-
-module.exports = function (command, options) {
- var file, args;
- if (process.platform === 'win32') {
- file = 'cmd.exe';
- args = ['/s', '/c', '"' + command + '"'];
- options = util._extend({}, options);
- options.windowsVerbatimArguments = true;
- }
- else {
- file = '/bin/sh';
- args = ['-c', command];
- }
- return spawn(file, args, options);
-};
diff --git a/node_modules/spawn-command/package.json b/node_modules/spawn-command/package.json
deleted file mode 100644
index 553394f..0000000
--- a/node_modules/spawn-command/package.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "spawn-command",
- "author": "Maciej Małecki <me@mmalecki.com>",
- "description": "Spawn commands like `child_process.exec` does but return a `ChildProcess`",
- "version": "0.0.2",
- "main": "./lib/spawn-command",
- "scripts": {
- "test": "node test/spawn-command-test.js"
- },
- "devDependencies": {
- "assert-called": "0.1.x"
- }
-}
diff --git a/node_modules/spawn-command/test/fixtures/commit b/node_modules/spawn-command/test/fixtures/commit
deleted file mode 100644
index a149be1..0000000
--- a/node_modules/spawn-command/test/fixtures/commit
+++ /dev/null
@@ -1,9 +0,0 @@
-commit 26b11915b1c16440468a4b5f4b07d2409b98c68c
-Author: Bert Belder <bertbelder@gmail.com>
-Date: Wed Jun 20 01:07:57 2012 +0200
-
- test-domain: fix the test to work on Windows
-
- On Windows, full pathnames are stored in the Error object when
- a file i/o error happens. This is not the case on Unix. Before
- this fix the test would break because of these full paths.
diff --git a/node_modules/spawn-command/test/spawn-command-test.js b/node_modules/spawn-command/test/spawn-command-test.js
deleted file mode 100644
index f74739a..0000000
--- a/node_modules/spawn-command/test/spawn-command-test.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var path = require('path'),
- assert = require('assert'),
- assertCalled = require('assert-called'),
- spawnCommand = require('../');
-
-var win32 = (process.platform === 'win32'),
- newln = win32 ? '\r\n' : '\n',
- grep = win32 ? 'findstr' : 'grep',
- child = spawnCommand(grep + ' commit < ' + path.join(__dirname, 'fixtures', 'commit')),
- stderr = '',
- stdout = '',
- exited = false;
-
-child.stdout.on('data', function (chunk) {
- stdout += chunk;
-});
-
-child.stderr.on('data', function (chunk) {
- stderr += chunk;
-});
-
-child.on('exit', assertCalled(function (exitCode) {
- assert.equal(exitCode, 0);
- assert.equal(stdout, 'commit 26b11915b1c16440468a4b5f4b07d2409b98c68c' + newln);
- assert.equal(stderr, '');
-}));
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage