1.0.0 • Published 7 months ago
@prajeshhh/envex v1.0.0
envex
envex extracts environment variables from your codebase.
It provides both package scenarios:
- library
- binary
Usage
as binary
- Install
@prajeshhh/envexglobally
npm i -g @prajeshhh/envex- Run using
envex
envex <path/to/your/codebase>as library
- Install
@prajeshhh/envexlocally
npm i @prajeshhh/envex- create
index.js
const Extractor = require("@prajeshhh/envex");
const { resolve } = require("node:path");
const e = new Extractor(resolve("path/to/your/codebase"), ["ignore", "list"])
.scan()
.toList();
console.log(e);you can define, file/directory names not to scan in ignore list array
Reference
1.0.0
7 months ago