npm install known-hosts
var knownHosts = ;console;
The above example will print out an array of the following form
host: 'github.com'publicKey: 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDS...'fingerprint: '1627aca576282d36631b564debdfa648'host: '18.104.22.168'...
The fingerprint is similar to the fingerprint in the ssh known host prompt (an md5 of the public key)