UNPKG
diet-yadda
Version:
latest (0.22.2)
0.22.2
0.22.1
A true BDD framework for JavaScript - slimmed down
github.com/troven/yadda
troven/yadda
diet-yadda
/
bin
/
examples.js
10 lines
(8 loc)
•
292 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
/* jslint node: true */
"use strict"
;
var
spawn =
require
(
'child_process'
).
spawn
;
var
platform =
require
(
'os'
).
platform
();
var
cmd =
/^win/
.
test
(platform) ?
'bin\\examples.bat'
:
'bin/examples.sh'
;
spawn
(cmd, [], {
stdio
:
'inherit'
}).
on
(
'exit'
,
function
(
code
) { process.
exit
(code); });