UNPKG
gulp-execa
Version:
latest (8.0.1)
8.0.1
8.0.0
7.0.1
7.0.0
6.0.0
5.0.1
5.0.0
4.5.0
4.4.1
4.4.0
4.3.0
4.2.0
4.1.0
4.0.0
3.0.2
3.0.1
3.0.0
2.0.0
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
0.8.0
0.7.1
0.7.0
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
0.0.2
Gulp.js command execution for humans
www.github.com/ehmicky/gulp-execa
ehmicky/gulp-execa
gulp-execa
/
build
/
src
/
input.js
11 lines
(8 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{throwError}
from
"./error.js"
;
export
const
validateInput
=(
input
)=>{
if
(!
isValidInput
(input)){
throwError
(
`The command must be a non-empty string:
${input}
`
) } };
export
const
isValidInput
=(
input
)=>
typeof
input===
"string"
&&input.
trim
()!==
""
;