file-exists icon indicating copy to clipboard operation
file-exists copied to clipboard

Allow alternative fs to be provided via options

Open dazinator opened this issue 7 years ago • 2 comments

The background on this is here: https://github.com/pahen/madge/issues/186 I am working my way through the stack, and anything that directly uses fs I am seeing if we can allow an alternative fs implementation to be passed in. This allows some interesting scenarios like supporting virtual file systems, with things like unionfs and memfs.

Would you be open to a PR that allows an additional fileSystem option to be passed in, and if it is, will use that instead of the default fs ?

dazinator avatar Dec 10 '18 18:12 dazinator

Have submitted a PR as it seemed fairly straightforward.

dazinator avatar Dec 10 '18 18:12 dazinator

As no response I created a fork in the end and have put change there.

dazinator avatar Jun 28 '19 01:06 dazinator