npm.io
1.0.6 • Published 5 years ago

s3-block-store

Licence
(Apache-2.0 AND MIT)
Version
1.0.6
Deps
3
Size
5 kB
Vulns
1
Weekly
0

s3-block-store

Storage functions @ipld/block interface.

const s3 = require('s3-block-store')
const store = s3('bucketName')

const { get, put, has } = store

get(cid)

Return Block instance.

has(cid)

Return false or integer (size).

put(block)

Stores block instance by attached CID.