secret-reader
v1.0.0
Published
This package is use to prevent env file to expose in frontend
Downloads
4
Readme
secret-reader
A simple Node.js module to read secrets from a PHP file.
Usage
const readSecrets = require("secret-reader");
const secrets = readSecrets("/path/to/your/env/index.php");
console.log(secrets);
// { APP_SECRET: 'THISISAPPSECRETHERE', ANOTHER_SECRET: 'value' }