1.2.2 • Published 9 years ago

keybase-user v1.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

keybase-user Build Status

Get user info of a Keybase user

Install

$ npm install --save keybase-user

Usage Examples

var kbuser = require('keybase-user');

kbuser('max').then(function(user) {
  console.log(user.id); // => dbb165b7879fe7b1174df73bed0b9500
  console.log(user.basics);

/* 
 {
   username: 'max',
   ctime: 1391657400,
   mtime: 1421074124,
   id_version: 150,
   track_version: 99,
   last_id_change: 1448627381,
   username_cased: 'max'
 }
*/
});
// other usernames
kbuser('bitcoyne', 'coinbase').then(function(user) {
  console.log(user.id); // => 23260c2ce19420f97b58d7d95b68ca00
});

Will return null if the user object doesn't exist

API

kbuser(value, proof)

value

Required
Type: string

Keybase/linked account username, domain name, or the user's fingerprint.

proof

Type: string

Linked accounts like github, coinbase, hackernews, reddit, etc.

Notes:

  • For domains and fingerprint queries use domain and key_fingerprint

Promise

user

Type: object

Various user info.

Notes:

  • Visit the official API for more information

User sub-objects

NameDescription
idThe user's id (random 32-digit hex string).
basicsThe simplest and often most commonly-accessed info about a user.
profileProfile information. By default, user.profile is null, until a user creates one.
public_keysPublic key bundle. You should access someone's public key with public_keys.primary.
crypto_addressBitcoin address and signature id.

Related

License

MIT © Gabriel Montalvo

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.0.12

9 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago