Emulates Node's require()
function for filesystem-related modules ('fs'
, 'path'
, 'buffer'
, etc).
Exposes all of the file system backends available in BrowserFS.
You must call this function with a properly-instantiated root file system before using any file system API method.
The root filesystem to use for the entire BrowserFS file system.
Installs BrowserFS onto the given object. We recommend that you run install with the 'window' object to make things global, as in Node.
Properties installed:
This allows you to write code as if you were running inside Node.
The object to install things onto (e.g. window)
Generated using TypeDoc
BrowserFS's main interface.
In the browser, this is exposed as the
BrowserFS
global.In node, this is the object you receive when you
require('browserfs')
.