【文件属性】:
文件名称:dat-blob-store:dat默认使用的Blob存储区
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-19 12:21:45
JavaScript
dat-blob商店
默认使用的Blob存储区
npm install dat-blob-store
用法
var store = require ( 'dat-blob-store' )
var blobs = store ( './some-folder' )
var ws = blobs . createWriteStream ( 'test.txt' )
ws . write ( 'hello world\n' )
ws . end ( function ( ) {
console . log ( ws . key ) // use this key (a hash) to read out the blob
} )
Blob存储区将存储所写文件的两个副本。 一个在test.txt ,一个内容在data.dat/blobs 。
执照
麻省理工学院
【文件预览】:
dat-blob-store-master
----test.js(1KB)
----.travis.yml(60B)
----LICENSE(1KB)
----README.md(662B)
----.gitignore(13B)
----index.js(1KB)
----package.json(765B)