sha1-file-web

1.0.2 • Public • Published

Sha1sum for web file object

Install

yarn add sha1-file-web

Usage

import sha1 from 'sha1-file-web'
 
// Input: file is the File object:
// https://developer.mozilla.org/en-US/docs/Web/API/File
// Output: string of sha1 hash
async function test (file) {
  const hash = await sha1(file)
  console.log('hash:', hash)
}

Readme

Keywords

none

Package Sidebar

Install

npm i sha1-file-web

Weekly Downloads

29

Version

1.0.2

License

MIT

Unpacked Size

3.18 kB

Total Files

5

Last publish

Collaborators

  • jackytck