y-ipfs-connector:IPFS上的Y.js连接器

时间:2021-02-03 02:05:49
【文件属性】:
文件名称:y-ipfs-connector:IPFS上的Y.js连接器
文件大小:148KB
文件格式:ZIP
更新时间:2021-02-03 02:05:49
ipfs p2p crdt yjs IPFSJavaScript y-ipfs连接器 未被主动维护 IPFS连接器 () 用它! 使用npm检索此内容: $ npm install y-ipfs-connector --save 例 // you need to create and inject a IPFS object const IPFS = require ( 'ipfs' ) const Y = require ( 'yjs' ) require ( 'y-ipfs-connector' ) ( Y ) // other Yjs deps: require ( 'y-memory' ) ( Y ) require ( 'y-array' ) ( Y ) require ( 'y-text' ) ( Y ) // create IPFS node const ipfs = new IPFS ( { EXPERIMENTAL : { pubsub : true // need this to work } } ) Y ( { db : { name : 'memory' } , connector :
【文件预览】:
y-ipfs-connector-master
----circle.yml(417B)
----src()
--------encode.js(81B)
--------decode.js(215B)
--------index.js(6KB)
----.travis.yml(481B)
----LICENSE(1KB)
----README.md(3KB)
----.gitignore(675B)
----package-lock.json(678KB)
----package.json(689B)

网友评论