npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

dat-blob-store

2.0.0

@mafintosh

npmHomeRepoSnykSocket
Downloads:6
$ npm install dat-blob-store
DailyWeeklyMonthlyYearly

dat-blob-store

The blob store dat uses per default

npm install dat-blob-store

build status

Usage

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
})

The blob store will store two copies of the file written. One in test.txt and one content-addressed in data.dat/blobs.

License

MIT