-
Notifications
You must be signed in to change notification settings - Fork 24
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
Suggestion: unionFS.promises.use() #751
Comments
I'm not sure what you're suggesting here - afaik |
Okay, you're looking for a genuine use case. Yes, Whenever possible, I prefer to use I was reading npmjs's package pages for unionfs and memfs, and thinking, "wow, this is really nice, and simple." Union instances have a My ideal case would be something like this: import fs from "fs/promises";
import { Union } from "unionfs/promises";
import { Volume, createFSFromVolume } from "memfs/promises";
export function TemporaryFSPromises() : Union {
const vol = new Volume;
const inMemoryFS = createFsFromVolume(vol);
const unionFS = new Union;
return unionFS.use(fs).use(inMemoryFS);
} In other words, like the synchronous filesystem API of As my code sample in the original post suggests, I've already figured out how to emulate this on my own, so it's not a strict need. I just think, for parity with the |
Right, so you're asking for a |
I don't always use
fs
, but when I do, I preferfs/promises
. 😄The text was updated successfully, but these errors were encountered: