A simple filebrowser for emscripten's virtual filesystem
Go to file
Mai Lapyst 4f54216abd Update v1.1.0: make compatible with darkplus-monaco 2.0.0 2023-09-18 05:03:21 +02:00
.gitignore Release v1.0.1: fixing package.json now properly containing all files 2022-10-22 18:34:36 +02:00
LICENSE Initial commit 2022-10-06 19:45:15 +02:00
fs_browser.css Initial commit 2022-10-06 19:45:15 +02:00
fs_browser.js Update v1.1.0: make compatible with darkplus-monaco 2.0.0 2023-09-18 05:03:21 +02:00
package.json Update v1.1.0: make compatible with darkplus-monaco 2.0.0 2023-09-18 05:03:21 +02:00
readme.md Adding package json / badge to readme; release 1.0.0 2022-10-06 21:27:42 +02:00

readme.md

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