You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

enclavejs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enclavejs

Module exports an object with the following functions:

0.0.3
latest
npmnpm
Version published
Maintainers
1
Created
Source

Module exports an object with the following functions:

enclave.getPublicProfile

Usage:

enclave.getPublicProfile('myuser/namespace')
  .then(profile => {
    console.log(profile.getJSON())
  })

Takes in a profile path and returns a promise that resolves to an EnclaveProfile. The promise will reject if the keybase filesystem is down, or the enclave.yaml file is malformed.

enclave.getPrivateProfile

Usage:

enclave.getPrivateProfile('myuser/namespace', 'another_org')
  .then(profile => {
    console.log(profile.getJSON())
  })

Gets the private profile shared between the user and an organization. Resolves to an EnclaveProfile, similar to getPublicProfile

EnclaveProfile

Methods:

  • getJSON()

Returns a JSON representation of the file

  • getValue()

Returns a value given a key. Returns undefined if the key is not set

  • getUsername()
  • getFullname()
  • getEmail()
  • getProfileImageURL()

const EnclaveUser = require('enclavejs') const user = new EnclaveUser('myuser') `

FAQs

Package last updated on 08 Sep 2019

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