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)
Do you have any suggestions or project updates on how to use this library as an ES module?
I try
but always get a message like