Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.11 KB

File metadata and controls

50 lines (36 loc) · 1.11 KB

Keeper Javascript SDK Header

Keeper Javascript SDK

This Javascript SDK allows you to interact with the Keeper backend API service - login, sync Vault, manage data etc.

This SDK can be used from Node or from the 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

To ignore certain commits in git blame (like formatting commits), run this command:

git config blame.ignoreRevsFile .git-blame-ignore-revs