keybase-primary

1.0.2 • Public • Published

keybase-primary Build Status

Get the primary public key of a Keybase user

Install

$ npm install --save keybase-primary

Usage

var kbpk = require('keybase-primary');
 
kbpk('max', function (public_key) {
    console.log(public_key);
    //=> '-----BEGIN PGP PUBLIC KEY BLOCK ... END PGP PUBLIC KEY BLOCK-----'
});

SELF-SIGNED PUBLIC KEY NOT FOUND and 404 errors will return a null value

CLI

$ npm install --global keybase-primary
$ keybase-primary --help

  Usage
    $ keybase-primary <username>

  Example
    $ keybase-primary max
    -----BEGIN PGP PUBLIC KEY BLOCK ... END PGP PUBLIC KEY BLOCK-----

Related

License

MIT © Gabriel Montalvo

Package Sidebar

Install

npm i keybase-primary

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • gamr