{"repo":"ehmicky/gulp-execa","free":true,"listed":false,"github":"https://github.com/ehmicky/gulp-execa","clone":"git clone https://github.com/ehmicky/gulp-execa.git","description":"Gulp.js command execution for humans","language":"JavaScript","stars":56,"topics":["gulp","execa","gulp-plugin","gulpjs","gulpplugin","bash","cli","es6","javascript","library"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"Gulp.js command execution for humans. As opposed to similar plugins or to child process.exec() , this uses Execa which provides: - Better Windows support, including shebangs - Faster and more secure commands, since no shell is used by default - Execution of locally installed binaries - Interleaved stdout / stderr gulp-execa adds Gulp-specific features to Execa including: - a task shortcut syntax - configurable verbosity - better errors Commands can be executed either directly or inside a files stream. In streaming mode, unlike other libraries: - commands are run in parallel, not serially - output can be saved either in files or in variables Example gulpfile.js : Install This plugin requires Gulp 5 and Node.js =18.18.0. It is an ES module and must be loaded using an import or import() statement, not require() . If TypeScript is used, it must be configured to output ES modules, not CommonJS. Methods task(command, [options]) Returns a Gulp task that executes command . exec(command, [options]) Executes command . The return value is both a promise and a child process instance. The promise will be resolved with the command result. If the command failed, the promise will be rejected with a nice error. If the reject: false option was used, the promise will be resolved with that error instead. stream(function, [options]) Returns a stream that executes a command on each input file. function must: - take a Vinyl file as argument. The most useful property is file.path but other propertie","default_branch":null,"files":null,"tree":[],"storefront":"/r/ehmicky","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ehmicky/gulp-execa/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}