-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add documents for getBrowserFS
- Loading branch information
1 parent
846a96a
commit 9d5e404
Showing
4 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: getBrowserFS | ||
--- | ||
|
||
Get the `BFSEmscriptenFS` object of the current running emulator. | ||
|
||
See [BFSEmscriptenFS](https://jvilk.com/browserfs/1.4.1/classes/_generic_emscripten_fs_.bfsemscriptenfs.html) for more information. | ||
|
||
## Usage | ||
```js | ||
const nostalgist = await Nostalgist.nes('flappybird.nes') | ||
|
||
const browserFS = await nostalgist.getBrowserFS() | ||
const nodeFS = browserFS.getNodeFS() | ||
nodeFS.readdirSync('/') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters