Skip to content
Small tool for storing keys in a password protected files. Can be used for api keys in a repo
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
resources
test
.babelrc
.gitignore
.travis.yml
LICENSE
README.md
package.json
yarn.lock

README.md

pvault

Save your api keys in a password protected file on your repo.

Demo

demo-gif

Getting started

npm install && npm test

CLI

Create a new vault

pvault create <name>

List existing vaults

pvault list

Shell

Once a vault is open, the following commands are available :

  • set <key> <value>

  • unset <key>

  • get <key>

  • dump

  • exit

Opening a vault from the application

  var pvault    = require('pvault');
  var Vault     = pvault(process.cwd()); // Vault folder

  var apiKeys = new Vault('apiKeys', process.ENV.PVAULT_PASSWORD);
  
  apiKeys.get('github');
You can’t perform that action at this time.