npm.io
1.0.2 • Published 7 years agoCLI

ghkeys

Licence
MIT
Version
1.0.2
Deps
1
Size
2 kB
Vulns
0
Weekly
0

ghkeys

Obtain the PGP keys of your fellow Githubbers using the Github API

CLI usage

ghkeys takes a single argument, the github username, and outputs all the PGP keys (newline separated) on stdout.

npx ghkeys [github username] | gpg --import

JS API

const ghkeys = require('ghkeys')

ghkeys(username).then(keys => {
  for (let key of keys) {
    // do something with the key
    console.log(key)
  }
})