Skip to content

This module works as a wrapper for the Sops tool to Yaml and Json files.

License

Notifications You must be signed in to change notification settings

Moon1706/sops-wrapper

Repository files navigation

sops-wrapper

Known Vulnerabilities Standard - JavaScript Style Guide

NPM

This module works as a wrapper for the Sops tool to Yaml and Json files.

Important: you must have Sops utile before starting this module.

Example

import { execSops, decryptSops } from 'sops-wrapper';
const version = execSops(['--version']);
const encryptStringContent = execSops(['--encrypt', 'example.json']);
const decryptJSObject = decryptSops('example.enc.json');

Tests

The repo contains linter, formatter, and the one simple unit test. All of this can be run with npm run default.

About

This module works as a wrapper for the Sops tool to Yaml and Json files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published