Skip to content

Commit 7a8d1b7

Browse files
authored
Update README.md
1 parent 79be29b commit 7a8d1b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ sized alphabet based on the actual contents of the string.
1212

1313
![image of the formula for information entropy calculation](https://upload.wikimedia.org/math/6/2/7/6270d629826e5df0949332423566dd78.png)
1414

15+
### Demo
16+
17+
A [simple password strength meter](https://mvhenten.github.io/string-entropy/) that updates as you type.
18+
1519
### Documentation
1620

1721
See the annotated sources [src/index.ts](src/index.ts).
1822

1923
### Example
2024

2125
```javascript
22-
var entropy = require('string-entropy');
26+
const { entropy } = require('string-entropy');
2327

2428
console.log(entropy('correct horse battery staple'));
2529
// outputs 132

0 commit comments

Comments
 (0)