@medable/mdctl-credentials-provider-pouchdb

1.0.72 • Public • Published

mdctl-credentials-provider-pouchdb

Developer Tools Credential Provider using PouchDB for Medable

This module will let you store your credentials into PouchDB storage.

Usage

const PouchDbCredentialsProvider = require('@medable/mdctl-credentials-provider-pouchdb'),
      provider = new PouchDbCredentialsProvider({
        name: path.join(os.homedir(), '.medable/mdctl.db'),
        key: 'whatEv3rY0uW4nt@here'
      })
      
// clear credentials.      
await provider.clear()

// add a new credential 
await provider.add('env', {
        apiKey: 'abcdefghijklmnopqrstuv',
        username: 'test@medable.com',
        password: 'password'
      })  

// get the list of credentials that matches with these filters.
await provider.list('env', {
        type: 'password',
        username: 'test@medable.com'
      }) 

/@medable/mdctl-credentials-provider-pouchdb/

    Package Sidebar

    Install

    npm i @medable/mdctl-credentials-provider-pouchdb

    Weekly Downloads

    580

    Version

    1.0.72

    License

    MIT

    Unpacked Size

    9.78 kB

    Total Files

    4

    Last publish

    Collaborators

    • harishva
    • myerkes-md
    • cscherer-md
    • __jacobi
    • jamessas
    • trsmith
    • grobledo
    • oferrero.medable