0.1.0 • Published 9 years ago

connect-file v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

connect-file

This plugin is supposed to make a stream connect with file contents or strings.

use

sudo npm install --save-dev connect-file

to install

How to use

when trying to copy content of file or just javascript string.

var concat = require('gulp-concat')
var connectFile = require('connect-file')

gulp.task('connect',function(){
    gulp.src('test.txt')
    .pipe(connect({mode:'file', src:'test2.txt'}))
    .pipe(connect({mode:'string',src:'abcdefghijklmnopqrstuvwxyz.TestString'}))
    .pipe(concat('newFile.txt'))
    .pipe(gulp.dest('result/'));
});

Test Input Files

the test files used above are as follows.

//---------test.txt-----------//
123
//---------test2.txt----------//
FileTest
a
a
a

Test Output File

//---------result/newFile.txt----------//
123FileTest
a
a
aabcdefghijklmnopqrstuvwxyz.TestString
0.1.0

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago