1.1.0 • Published 8 months ago

@bithero/emscripten-fsbrowser v1.1.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
8 months ago

emscripten fs-browser

Npm package version

A simple filebrowser for emscripten's virtual filesystem.

License

AGPL-3.0-or-later; see LICENSE file for more details.

Usage

Just put <script src="fs_browser.js"></script> somewhere inside your custom html, and call init_explorer_static() from one of your preRun hooks:

var Module = {
    preRun: [
        function () {
            init_explorer_static();
        }
    ],
    // ...
}

Dependencies

The fsbrowser currently depends on:

  • monaco to provide an way to edit files.
  • glsl-monaco to provide some basic glsl highligting for opengl shaders
  • darkplus-monaco as theme for monaco