Add require Buffer to allow for Buffer.isBuffer()

Adding const Buffer = require('buffer').Buffer; to allow the Buffer.isBuffer() function to work properly
pull/34/head
Max van den Bosch 2 years ago committed by GitHub
parent bbb1638c24
commit 1b06173209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      lib/byline.js

@ -25,6 +25,7 @@
*/ */
const stream = require('stream') const stream = require('stream')
const timers = require('timers') const timers = require('timers')
const Buffer = require('buffer').Buffer;
const createLineStream = (readStream, options) => { const createLineStream = (readStream, options) => {
if (!readStream) throw new Error('expected readStream') if (!readStream) throw new Error('expected readStream')

Loading…
Cancel
Save