UNPKG
promised-exec
Version:
latest (1.0.1)
1.0.1
1.0.0
Promised execution of terminal command.
github.com/yakimchuk/promised-exec
yakimchuk/promised-exec
promised-exec
/
test.js
13 lines
(9 loc)
•
230 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
module
, promise;
module
=
require
(
'./index.js'
); promise =
module
(
'git ls-remote'
); promise.
then
(
function
(
) {
console
.
log
(
'succeed'
,
arguments
); }); promise.
catch
(
function
(
) {
console
.
log
(
'error'
,
arguments
); });