brfs icon indicating copy to clipboard operation
brfs copied to clipboard

Support fs.createReadStream?

Open unframework opened this issue 10 years ago • 2 comments

A module I'm using (parse-obj by @mikolalysenko) expects an incoming data stream, which I am loading from a static asset using brfs. But since there is no direct support for createReadStream I have been needing to add a simple Readable wrapper on top of readFile. It's not a huge problem, but I wonder if that boilerplate can be baked into brfs itself... I can do a quick PR if there are no design/scope issues with that.

unframework avatar May 17 '15 19:05 unframework

:+1: This functionality would be really useful.

@substack Would you accept a PR for this?

allouis avatar Feb 29 '16 16:02 allouis

this seems cool, PR welcome

goto-bus-stop avatar Jan 30 '18 10:01 goto-bus-stop