browserify / browserify/sha.js
Using as an ES module
Open
- Dominant language
- JavaScript
- Stars
- 298
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Do you have any suggestions or project updates on how to use this library as an ES module?
I try
````
import {sha1} from "sha.js"
var hash = sha1("sha1").update("Hello World!").digest("hex");
````
but always get a message like
````
TypeError: Cannot read properties of undefined (reading 'init')
at Sha (D:\Documents\code\dvb-i-tools.maint\node_modules\sha.js\sha.js:22:7)
````
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.