Skip to content

Instantly share code, notes, and snippets.

View nylen's full-sized avatar
🏗️
Constructing

James Nylen nylen

🏗️
Constructing
View GitHub Profile
@thlorenz
thlorenz / sample.js
Last active February 26, 2019 03:56
Why is fs.createReadStream always emitting buffers? Read the comment and corrected sample to find the answer ;)
var stream = require('stream');
var util = require('util');
var Writable = stream.Writable;
module.exports = CheckEncodingWritable;
util.inherits(CheckEncodingWritable, Writable);
function CheckEncodingWritable (opts) {