0.7.3 • Published 2 years ago

@nichoth/multihash v0.7.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

multihash

Create path & URL safe hashes of files. Suitable for use in a browser

Inspired by ssbc/multiblob, but this deals only with a blob -> filename interface, not storage of blobs.

install

npm i -S @nichoth/multihash

example

const fs = require('fs')
const { getHash } = require('@nichoth/multihash')

const pic = fs.readFileSync(__dirname + '/cinnamon-roll.jpg')
const hashName = getHash(pic)
console.log('hash name', hashName)
// =>     hash name 1e8d57856d9da786cd24b66b624bab64fc65521aab9270ff52efe70e9f8a9cc8

bundle size

total 16
-rw-r--r--   1 nick  staff   469B Jan 10 17:39 index.cjs
-rw-r--r--   1 nick  staff   576B Jan 10 17:39 index.mjs
0.7.2

2 years ago

0.7.1

2 years ago

0.7.3

2 years ago

0.7.0

2 years ago

0.6.0

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago