Axios-like NodeJS API for Hashicorp Vault.
vault-api
require Node.js >= v8.17.0.
npm install vault-api
Requests can be made by passing the relevant config to vault
function.
import vault from 'vault-api';
// (or)
// import {vault} from 'vault-api';
// const {vault} = require('vault-api');
// Write data to vault
vault({
method: 'write',
path: 'secret/apiKey',
data: {
webApp: '5cfdf55e-cfa9-5da8-b2b2-64f30a462a09value'
}
});
// Read data from vault
vault({
method: 'read',
path: 'secret/apiKey'
});
Documentation and guides are available at Repo's Github Wiki
- Key/Value Version 1
- Key/Value Version 2
See CONTRIBUTING.md for Contributing guidelines.
See CODE_OF_CONDUCT.md for Code of Conduct guidelines.
Checkout the project license at LICENSE.md.
vault-api
is heavily inspired by axios
. I was inspired by the simplicity of the axios
and wanted to make a similar library for Hashicorp Vault. The ultimate goal of this library is to provide a simple, easy to use, extensible API for interacting with Hashicorp Vault. I hope you enjoy using it!