Closed vicsstar closed 6 years ago
@vicsstar Thank you for the PR!
Please take a look at the changes I made on the vicsstar-enhancement/expose-strength branch.
Besides some README.md clean-up, the logic did not emit the strength event on an empty string.
If you don't have any objections I will merge the PR and push a new version to NPM.
Totally missed that if-password block; thanks! Looks good to me, no objections. Feel free to merge when ready.
Thanks!
Exposes the strength via an EventEmitter, emitting the current strength as the only single parameter, in response to changes to the password.