🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

privacypal-local-client

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

privacypal-local-client

Javascript library to work with privacypal (keepass) vaults.

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

PrivacyPal Local Client

Class Hierarchy

Methods

  • addAccount
  • getAccounts
  • login

Methods

constructor

constructor(fileInterface: [FileInterface], path: string): Promise‹boolean›

Parameters:

NameType
fileInterface[FileInterface]
pathstring

Returns: void

addAccount

addAccount(entry: [Entry]): Promise‹boolean›

Parameters:

NameType
entry[Entry]

Returns: Promise‹boolean›

getAccounts

getAccounts(): Promise‹[Entry]

Returns: Promise

getAccountCredentials

getAccountCredentials(): Promise‹[EntryCredentials]

Returns: Promise

login

login(username: string, password: string): Promise‹void›

Parameters:

NameType
usernamestring
passwordstring

Returns: Promise‹void›

Type aliases

FileInterface

Ƭ FileInterface:

{
    readFile: (path: string) => Promise<string>;
    writeFile: (path: string, data: string) => Promise<void>;
    findFile: (path: string) => Promise<boolean>;
    createFile: (path: string) => Promise<void>;
    deleteFile: (path: string) => Promise<void>;
}

Entry

Ƭ Entry: Record‹EntryFields, string›

EntryFields

Ƭ EntryFields: _"name" | "url" | "type"

###EntryCredentials

Ƭ EntryCredentials: Record‹EntryCredentialsFields, string›

###EntryCredentialsFields

Ƭ EntryCredentialsFields: _"username" | "password" | "otp";

FAQs

Package last updated on 10 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