🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

env-sops

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-sops - npm Package Compare versions

Comparing version

to
0.0.0-20240306065415

3

lib/decrypt-with-env.js

@@ -7,7 +7,8 @@ import { execSync } from "child_process";

execSync(`export SOPS_AGE_KEY="${process?.env?.AGE_PRIVATE_KEY}" && unset SOPS_AGE_KEY_FILE && ${SOPS_COMMAND} --decrypt ${srcPath} > ${destPath}`);
console.log(`Decrypted file: ${destPath}`);
return true;
} catch (error) {
console.error(error);
console.info(JSON.stringify(error, null, 2));
return false;
}
};
{
"name": "env-sops",
"version": "0.0.0-20240306064749",
"version": "0.0.0-20240306065415",
"description": "Package to help encrypt/decrypt ENV files",

@@ -5,0 +5,0 @@ "main": "index.js",