@zababurin/connect

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @zababurin/connect

Weekly Downloads

0

Version

1.0.0

License

GPL-3.0-only

Unpacked Size

66.7 kB

Total Files

11

Last publish

Collaborators

  • zababurin