Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a 'fake' createReadStream #6

Open
kdvolder opened this issue Feb 22, 2013 · 2 comments
Open

Implement a 'fake' createReadStream #6

kdvolder opened this issue Feb 22, 2013 · 2 comments

Comments

@kdvolder
Copy link

Fake-fs as it is, is already quite useful. It would be even more useful if it implemented more of the node fs api.

One of the missing functions is 'createReadStream'.

As a first step it might already be useful to provide a mock implementation that emulates the Stream like interaction without truly needing to support true Streaming.

For example something similar to this:

https://github.com/scripted-editor/scripted/blob/dev/server/plugable-fs/scripted-fs.js#L367

@eldargab
Copy link
Owner

Yes, this is not beyond the scope. We can add it after new stream interface will be released. Don't think it is wise to bother with it right now

@Olegas
Copy link

Olegas commented Sep 13, 2013

@kdvolder take a look at https://github.com/Olegas/node-mockfs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants