Shannon's Entropy Index implemented in ES6 Usage CommonJS: const shannonIndex = require("shannon-string-entropy-index") shannonIndex("string") If provided string is less than 3 characters, function will return "N/A"