This commit is contained in:
root
2023-07-30 22:05:51 +02:00
parent 65a0be1350
commit 06acaecee1
12267 changed files with 671638 additions and 15 deletions

11
node_modules/spawn-command/examples/simple.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
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);
});