function shell(commands, options) {
commands = normalizeCommands(commands)
options = normalizeOptions(options)
const stream = through.obj(function (file, _encoding, done) {
runCommands(commands, options, file, (error) => {
if (error) {
this.emit('error', error)
} else {
this.push(file)
}
done()
})
})
stream.resume()
return stream
}n/a
(commands, options) => (done) => {
runCommands(normalizeCommands(commands), normalizeOptions(options), null, done)
}...
## Usage
```js
const gulp = require('gulp')
const shell = require('gulp-shell')
gulp.task('example', () => {
return gulp.src('*.js', {read: false})
.pipe(shell([
'echo <%= file.path %>'
]))
})
```
...