UNPKG
gulp-cli
Version:
latest (3.1.0)
3.1.0
3.0.0
2.3.0
2.2.1
2.2.0
2.1.0
2.0.1
2.0.0
1.4.0
1.3.0
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
0.3.0
0.2.0
0.1.5
0.1.4
0.1.3
0.1.0
Command line interface for gulp
gulpjs.com
gulpjs/gulp-cli
gulp-cli
/
lib
/
shared
/
exit.js
16 lines
(13 loc)
•
313 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
;
// Fix stdout truncation on windows
function
exit
(
code
) {
/* istanbul ignore next */
if
(process.
platform
===
'win32'
&& process.
stdout
.
bufferSize
) { process.
stdout
.
once
(
'drain'
,
function
(
) { process.
exit
(code); });
return
; } process.
exit
(code); }
module
.
exports
= exit;