dtv-checker
v1.0.1
Published
A simple package that check whether specific keys exist
Readme
dotenv-checker
A simple Node.js utility used to check if there is a specific key in enviroment table to avoid bugs
Installation
npm install dtv-checkerSyntax
require("dotenv").config();
const dtvChecker = require("dtv-checker");
dtvChecker.checkKeys(["JWT_SECRET"]); // true if there is JWT_SECRET in environment tables. this is always an arrayThank you!
Thank you for using dotenv-checker! Hope your codes never get a single bug loitering around, and hope you never spend 5 hours trying to find the bug when it's just environment tables missing the variable!
License
See LICENSE.txt
