UNPKG
runshell
Version:
latest (1.0.1)
1.0.1
1.0.0
0.5.0
0.4.0
0.3.1
0.3.0
0.2.0
0.1.0
0.0.6
Library to execute a shell command
github.com/firstandthird/runshell
firstandthird/runshell
runshell
/
example
/
run.js
13 lines
(10 loc)
•
288 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
const
runshell =
require
(
'../index.js'
);
runshell
(
'./dbg-test'
, {
log
:
true
},
(
err, data
) =>
{
if
(err) {
return
console
.
log
(
'Script Log: '
, err);
// eslint-disable-line no-console
}
console
.
log
(
'Script Complete'
, data);
// eslint-disable-line no-console
});