Save your api keys in a password protected file on your repo.
npm install && npm test
Create a new vault
pvault create <name>
List existing vaults
pvault list
Once a vault is open, the following commands are available :
-
set <key> <value>
-
unset <key>
-
get <key>
-
dump
-
exit
var pvault = require('pvault');
var Vault = pvault(process.cwd()); // Vault folder
var apiKeys = new Vault('apiKeys', process.ENV.PVAULT_PASSWORD);
apiKeys.get('github');