Script based on this Computerphile video.
$ node index.js
Enter password to test: password123
This password has been pwned 116847 times
I've only ran this on v8.10.0 of node.
Your text input is not transmitted nor stored anywhere. But needless to say, since this script is about passwords, use it at your own risk.