Closed
Description
Hi!
I'm probably just tired and doing something goofy
var { BufferList } = require('bl')
var bl = BufferList()
bl.append('hello')
bl.append(' world')
bl.append('\n')
bl.pipe(
process.stdout,
{ end: false }
)
(one of the readme examples ^)
~/s/doot ❯❯❯ node -v ⏎
v10.16.0
~/s/doot ❯❯❯ node index.js
/Users/travis/src/doot/index.js:9
bl.pipe(
^
TypeError: bl.pipe is not a function
at Object.<anonymous> (/Users/travis/src/doot/index.js:9:4)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
~/s/doot ❯❯❯ npm ls bl ⏎
/Users/travis/src/doot
└── bl@4.0.0
edit:
Ah, Just a doc thing
It should be
const { BufferListStream } = require('bl')
or
const BufferList = require('bl')
not var { BufferList } = require('bl')
Metadata
Assignees
Labels
No labels