A rust + webassembly library to calculate the Shannon Entropy of a string.
const { default: init, shannon_entropy } = await import('./pkg/entropy.js');
await init();
shannon_entropy('Hello World!');
// 3.0220556259155273
A rust library to calculate the shannon entropy of a string.
JavaScriptApache-2.0