# vault-get

> makes accessing hashicorp vault data a pleasure

Latest version **0.0.12** (published 2019-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install vault-get
pnpm add vault-get
yarn add vault-get
bun add vault-get
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.12 |
| Published | 2019-09-03 |
| First published | 2016-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 26.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Chad Scira |
| Maintainers | icodeforlove |

## Links

- npm: https://www.npmjs.com/package/vault-get
- npm.io page: https://npm.io/package/vault-get

## Dependencies (5)

- [atmpt](https://npm.io/package/atmpt.md) 1.0.3
- [debug](https://npm.io/package/debug.md) 4.1.1
- [traverse](https://npm.io/package/traverse.md) 0.6.6
- [node-vault](https://npm.io/package/node-vault.md) 0.9.0
- [template-colors](https://npm.io/package/template-colors.md) 0.0.9

## Recent versions

- 0.0.12 (latest) — 2019-09-03
- 0.0.11 — 2018-08-20
- 0.0.10 — 2017-02-28
- 0.0.9 — 2017-02-28
- 0.0.8 — 2017-02-28
- 0.0.7 — 2016-09-24
- 0.0.6 — 2016-08-30
- 0.0.5 — 2016-08-30
- 0.0.4 — 2016-08-29
- 0.0.3 — 2016-08-29
- 0.0.2 — 2016-08-27
- 0.0.0 — 2016-08-27

## README

# value-get

makes accessing hashicorp vault data a pleasure

## install

```
npm install vault-get
```

## usage

simple usage

```
import VaultGet from 'vault-get';

let vault = VaultGet({
	endpoint: '...', // (required)
	token: '...', // (required)
	key: '...', // or keys: ['...', '...', '...'] (optional)
	rootPath: 'secret' // (optional, default is secret)
});

let config = await vault.get({
	host: 'mysite.com/databases/master/host',
	username: 'mysite.com/databases/master/username',
	password: 'mysite.com/databases/master/password'
});

console.log(config);
```

nested usage

```
let databases = await vault.get({
	production: {
		host: 'mysite.com/databases/production/host',
		username: 'mysite.com/databases/production/username',
		password: 'mysite.com/databases/production/password'
	},
	development: {
		host: 'mysite.com/databases/development/host',
		username: 'mysite.com/databases/development/username',
		password: 'mysite.com/databases/development/password'
	}
});

```

## debugging

```javascript
DEBUG=vault ...
```

---
_Source: https://npm.io/package/vault-get · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
