a content-addressable store interface

npm install content-addressable
33 downloads in the last month

content-addressable store

A content-addressable store interface that can be used with any pluggable-store.

Usage example

ContentAddressable = require('../lib/index')

memoryStore = require('pluggable-store').server().memory()
contentAddressable = new ContentAddressable({store: memoryStore})

// depending on your pluggable store you can read/write synchronous:
hash = contentAddressable.write('value1')
value =

// async operations always work:
contentAddressable.write('value1', function(err, hash) {, function(err, res) {
npm loves you