fstream
fstream copied to clipboard
Advanced FS Streaming for Node
Use `Buffer.from` when it's available instead of `new Bufer(string)` Fixes: https://github.com/npm/fstream/issues/60 Refs: https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor Tracking: https://github.com/nodejs/node/issues/19079 Given that this is a highly popular module and that Buffer constructor was used in...
Hey, Starting on Node 10 this package will emit deprecation warnings. See [this guide](https://github.com/ChALkeR/safer-buffer/blob/master/Porting-Buffer.md) on what you should do in order to migrate to `Buffer.alloc`/`Buffer.from`. See https://github.com/nodejs/node/issues/19079 for discussion around...
This is a WIP: - [x] tests and documentation for `Abstract` (base class) - [ ] tests and documentation for `Reader` - [ ] tests and documentation for `Writer` -...
I think the following code must be deleted. Because the hardlink will be read by LinkReader. But the hardlink is just file. ``` var handleHardlinks = props.hardlinks !== false //...
`fstream_hash_issue_example.js` computes MD5 hash of a file read from filesystem. Program call and output in cmd.exe, Windows : ``` F:\...>node fstream_hash_issue_example.js fs.createReadStream: dd9e30aa94c1074d863846c4ed35b8bd fstream.Reader: d41d8cd98f00b204e9800998ecf8427e fstream.Reader: dd9e30aa94c1074d863846c4ed35b8bd ``` The code:...
There is no way to make reader read a subset of files excluding their parent directory. Even if fstream.Reader("./") is called it includes a parent folder.
See https://github.com/npm/node-tar/issues/39. TL;DR node-tar uses fstream in such a way that endChown is called with a uid that doesn't exist. In a docker container where we are root, this causes...
What is the value in exporting DirWriter if I need to duplicate the type information? `type` should automatically be set to `Directory` when using `DirWriter`
All three `Writer` examples on the readme invoke `end` on the return of ``write()`. But `.write()` returns booleans, not objects with `.end` methods. ``` fstream .Writer({ path: "path/to/file" , mode:...
I'm having to use this as it's pretty heavily integrated into npm, but I'm finding it a little tricky to grasp. Many of the streams don't seem to emit `data`...