gulp-file-reader
Advanced tools
Comparing version
@@ -19,3 +19,3 @@ 'use strict'; | ||
.pipe(through.obj(function (file, encoding, done2) { | ||
expect(file.contents).to.be.an.instanceOf(Buffer); | ||
expect(file.isBuffer()).to.equal(true); | ||
expect(file.contents.toString()).to.startWith("MIT License"); | ||
@@ -33,3 +33,3 @@ done2(); | ||
.pipe(through.obj(function (file, encoding, done2) { | ||
expect(file.contents).to.be.an.instanceOf(Buffer); | ||
expect(file.isBuffer()).to.equal(true); | ||
expect(file.contents.toString()).to.startWith("MIT License"); | ||
@@ -47,4 +47,3 @@ done2(); | ||
.pipe(through.obj(function (file, encoding, done2) { | ||
expect(file.contents).to.be.an('object'); | ||
expect(file.contents.read).to.be.a('function'); | ||
expect(file.isStream()).to.equal(true); | ||
done2(); | ||
@@ -51,0 +50,0 @@ }, function () { |
{ | ||
"name": "gulp-file-reader", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Gulp plugin to read file and save its content in Vinyl#contents property. See https://github.com/gulpjs/vinyl for more details", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,3 +12,3 @@ # gulp-file-reader | ||
* **buffer** *= true* | ||
* **buffer**: boolean *= true* | ||
If *true* then puts **content** in *Vinyl#contents* property otherwise | ||
@@ -29,3 +29,3 @@ a **stream** | ||
// Pass through just changed files | ||
.pipe(newer('dist')) | ||
.pipe(newer('dist/')) | ||
// Load their content into Vinyl#contents property | ||
@@ -32,0 +32,0 @@ .pipe(read()) |
6226
-1.14%53
-1.85%