1.0.0 • Published 7 months ago

@prajeshhh/envex v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

envex

envex extracts environment variables from your codebase.

It provides both package scenarios:

  • library
  • binary

Usage

as binary

  • Install @prajeshhh/envex globally
npm i -g @prajeshhh/envex
  • Run using envex
envex <path/to/your/codebase>

as library

  • Install @prajeshhh/envex locally
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