You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gulp-file-reader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-file-reader - npm Package Compare versions

Comparing version

to
1.0.2

7

index.test.js

@@ -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())