# install npm.
npm install --save-dev @yama-dev/gulp-stream-util
// require.
const streamUtil = require('@yama-dev/gulp-stream-util');
// require.
const streamUtil = require('@yama-dev/gulp-stream-util');
gulp.task('templates', function(){
gulp.src(['file.txt'])
.pipe(streamUtil(function(){
console.log(this);
}))
.pipe(gulp.dest('build/'));
});
API | description |
---|---|
path | 相対パス |
root | ルート |
dir | ディレクトリ |
base | ベース |
ext | 拡張子 |
name | ファイル名 |
none
For Developer
- Fork it ( https://github.com/yama-dev/gulp-stream-util/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request