Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 939 Bytes

README.md

File metadata and controls

41 lines (31 loc) · 939 Bytes

Keeper Javascript SDK

This SDK allows to interact with Keeper backend service (KeeperApp) - login, sync Vault, manipulate enterprise data etc.

This SDK can be used from Node or from browser

NPM

Usage:

npm install keeperapi
    try {
        let auth = new Auth({
            host: KeeperEnvironment.DEV
        });
        await auth.login(username, password);
        console.log("login successful");
        let vault = new Vault(auth);
        await vault.syncDown();
        vault.records.forEach(x => console.log(JSON.stringify(x)));
    } catch (e) {
        console.log(e);
    }

For local development,

npm run build

from "keeperapi" folder, then

npm link ../../keeperapi

from your client folder