{"id":18842,"library":"super-test-json","title":"env-base64-json","description":"env-base64-json (v1.7.0) is a CLI tool and library that outputs all environment variables as a base64-encoded JSON string. It offers a simple npx command-line interface and a programmatic API for Node.js. Unlike generic JSON encoding utilities, it specifically targets environment variable serialization for secure transmission or storage. The package is rarely updated but is stable and lightweight, with no external dependencies.","status":"active","version":"1.7.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","json","cli"],"install":[{"cmd":"npm install super-test-json","lang":"bash","label":"npm"},{"cmd":"yarn add super-test-json","lang":"bash","label":"yarn"},{"cmd":"pnpm add super-test-json","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package does not provide ES module exports; use CommonJS require().","wrong":"import { getEnvBase64Json } from 'env-base64-json';","symbol":"getEnvBase64Json","correct":"const { getEnvBase64Json } = require('env-base64-json');"}],"quickstart":{"code":"const { getEnvBase64Json } = require('env-base64-json');\nconst base64Env = getEnvBase64Json();\nconsole.log(base64Env);\n// Decode it back\nconst decoded = JSON.parse(Buffer.from(base64Env, 'base64').toString());\nconsole.log(decoded);","lang":"javascript","description":"Demonstrates programmatic usage: encode environment variables to base64 JSON and decode."},"warnings":[{"fix":"Use 'npm i env-base64-json' or 'npx env-base64-json'.","message":"Package name in npm is 'env-base64-json', not 'super-test-json'.","severity":"gotcha","affected_versions":"all"},{"fix":"Use require() for CommonJS imports.","message":"The package does not support ES modules (ESM). Using import will fail.","severity":"gotcha","affected_versions":"all"},{"fix":"Manually declare module typings.","message":"No TypeScript type definitions are provided; TypeScript users may need to create .d.ts files.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install env-base64-json'.","cause":"Package not installed.","error":"Cannot find module 'env-base64-json'"},{"fix":"Use require('env-base64-json') correctly.","cause":"Attempting to require() an ES module (though this package is CJS).","error":"ERR_REQUIRE_ESM"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}