New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

keybase-user

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keybase-user

Get user info of a Keybase user

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

License

MIT © Gabriel Montalvo

Keywords

FAQs

Package last updated on 19 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc