# git-vault

> cli tool to manage encrypted config file in a remote github repo.

Latest version **0.0.4** (published 2020-04-09) · MIT license · 0 weekly downloads

## Install

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

Provides the command `git-vault`.

## 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.4 |
| Published | 2020-04-09 |
| First published | 2020-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nir Adler |
| Maintainers | niradler55 |
| Keywords | git, config, secret |

## Links

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

## Dependencies (4)

- [yargs](https://npm.io/package/yargs.md) ^15.3.1
- [inquirer](https://npm.io/package/inquirer.md) ^7.1.0
- [git-content](https://npm.io/package/git-content.md) 0.0.4
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.6.2

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2020-04-09
- 0.0.3 — 2020-04-09
- 0.0.2 — 2020-04-09
- 0.0.1 — 2020-04-06

## README

# git-vault

store keys safely inside a remote git repositories (private).
(best use in open source project)

## Installing

```bash
npm i -g git-vault
```

### USAGE

```bash
git-vault help
```

```bash
cd project-folder
git-vault init
git-vault add --key="test-key" --value="secret"
git-vault all
```

environment variable supported: ENCRYPTION_KEY, GITHUB_KEY, NODE_ENV

### Example

```bash
npm i git-vault express
```

```js
//express app
const express = require("express");
const gitVault = require("git-vault");
const app = express();

app.use((req, res, done) => {
  gitVault()
    .then((env) => (req.env = env))
    .finally(() => done());
});

app.use("/", (req, res) => res.json({ test: "site", env: req.env }));

const port = process.env.PORT || 3000;
app.listen(port, async () => {
  console.log(`running on port ${port}!`);
});
```

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

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