cross-spawn-cb 3.2.4 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Cross spawn with a completion callback
|
|
4
4
|
|
|
5
|
+
```bash
|
|
6
|
+
npm install cross-spawn-cb
|
|
7
|
+
```
|
|
8
|
+
|
|
5
9
|
```
|
|
6
10
|
var assert = require('assert');
|
|
7
11
|
var spawn = require('cross-spawn-cb');
|
|
8
12
|
|
|
9
|
-
spawn(
|
|
10
|
-
|
|
13
|
+
spawn(process.execPath, ['--version'], { encoding: 'utf8' }, function (err, res) {
|
|
14
|
+
if (err) throw err;
|
|
15
|
+
console.log(res.status, res.stdout.trim());
|
|
11
16
|
});
|
|
12
17
|
```
|