1.0.0 • Published 3 years ago

@zababurin/connect v1.0.0

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
3 years ago

webrtc

Test peer to peer connection
1 - Dialler
2 - Initiator
3 - push button peer init on dialer and initiator pages

Storage

nft.storage
pinata.cloud
js-ipfs config-browser
js-ipfs
proto
gateway

#FS

  • Create file FS.writeFile("file.txt","some contents");
  • Create file, with options FS.createDataFile("/data","file.txt","abcdef",true,true);

    folder where file will be saved
    file name file contents (a string) is this file readable? is this file writable?

folder where file will be saved

  • Rename file FS.rename("/data/file.txt","/data/renamed.txt");
  • Read file contents FS.readFile("/data/file.txt", { encoding: "utf8" });
  • Delete the file FS.unlink("/data/file.txt");

Enable virtual filesystems (the ephemeral MEMFS is included by default)

  • IDBFS -lidbfs.js
  • WORKERFS -lworkerfs.js
  • NODEFS -lnodefs.js

Folders

  • Create folder FS.mkdir("/data");
  • List folder contents FS.readdir("/data");
  • Delete empty folder FS.rmdir("/data");
  • Get working directory FS.cwd();

emscripten filesystem-api
emscripten-core