@irori/idbfs 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +2 -0
  2. package/idbfs.d.ts +6 -0
  3. package/package.json +6 -2
package/README.md CHANGED
@@ -5,6 +5,8 @@ This library provides access to the Emscripten file system, including
5
5
  It can be used to manipulate the contents of IDBFS stored by other Emscripten
6
6
  apps.
7
7
 
8
+ ## Usage
9
+
8
10
  This is nothing more than an empty Emscripten program compiled with IDBFS
9
11
  enabled, so you can use the [Emscripten file system
10
12
  API](https://emscripten.org/docs/api_reference/Filesystem-API.html) on it.
package/idbfs.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export interface IDBFSModule extends EmscriptenModule {
2
+ FS: typeof FS;
3
+ IDBFS: typeof IDBFS;
4
+ }
5
+ declare const factory: EmscriptenModuleFactory<IDBFSModule>;
6
+ export default factory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@irori/idbfs",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "author": "irori <irorin@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,8 +12,12 @@
12
12
  ],
13
13
  "main": "idbfs.js",
14
14
  "type": "module",
15
+ "types": "idbfs.d.ts",
15
16
  "scripts": {
16
17
  "build": "make"
17
18
  },
18
- "license": "Unlicense"
19
+ "license": "Unlicense",
20
+ "dependencies": {
21
+ "@types/emscripten": "^1.39.8"
22
+ }
19
23
  }