Skip to content

web4more/fs

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿšง Under construction ๐Ÿ‘ทโ€โ™‚๏ธ

File System for anywhere

๐Ÿ“‚ FileSystemFileHandle polyfill for Node.js and more!

Installation

Usage

// Node.js
import { openFile } from "@webfill/fs";

const handle = openFile("file.txt");
const file1 = await handle.getFile();
const text1 = await file1.text();
console.log(text1);
//=> 'I am a file!'

const writable = await handle.createWritable();
await writable.write("Hello world!");
await writable.close();

const file2 = await handle.getFile();
const text2 = await file2.text();
console.log(text2);
//=> 'Hello world!'
// Node.js and browser
import "@webfill/fs";

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.2%
  • TypeScript 15.8%