browserify / browserify/sha.js

Using as an ES module

Open
#82 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.