This commit is contained in:
2021-11-21 11:18:28 +01:00
parent 7a358eb836
commit 230b10b2a3
9339 changed files with 892519 additions and 62 deletions

19
node_modules/transfob/README.md generated vendored Normal file
View File

@@ -0,0 +1,19 @@
# transfob
Get a transform stream, like `through2.obj()`. Useful for gulp tasks where you want to iterate over files.
``` js
var transfob = require('transfob');
// convert files to JS object
var data = {};
gulp.task( 'data', function() {
return gulp.src('data/*.md')
.pipe( transfob( function( file, enc, next ) {
var basename = path.basename( file.path, path.extname( file.path ) );
data[ file.path ] = file.contents.toString();
next( null, file );
}) );
});
```