Main
Default Export
import fs from '@microart/fs';
// use like regular, simply proxies to internal nodejs 'fs' module
fs.readdirSync();FileSystem class
The file system class is where the magic of the library comes from. It allows you to setup all sorts of providers to retrieve files and information.
import { FileSystem } from '@microart/fs';
const { fs } = new FileSystem();Default config, same as importing just fs or using the builtin fs module
const { fs } = new FileSystem({
provider: example provider instance
});Using a custom provider
Providers:
LocalProvider
ProxyProvider
S3Provider
FTPProvider
Last updated