📂 FileSystemFileHandle polyfill for Node.js and more!
// Node.jsimport{openFile}from"@webfill/fs";consthandle=openFile("file.txt");constfile1=awaithandle.getFile();consttext1=awaitfile1.text();console.log(text1);//=> 'I am a file!'constwritable=awaithandle.createWritable();awaitwritable.write("Hello world!");awaitwritable.close();constfile2=awaithandle.getFile();consttext2=awaitfile2.text();console.log(text2);//=> 'Hello world!'// Node.js and browserimport"@webfill/fs";