Socket
Book a DemoInstallSign in
Socket

dat-blob-store

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dat-blob-store

The blob store dat uses per default

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
3
Created
Source

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

FAQs

Package last updated on 27 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts