npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@owll/node-env-checker

v1.0.2

Published

A CLI tool to check for environment variables in your Node.js application.

Readme

@owll/node-env-checker

The @owll/node-env-checker package is a command-line tool used to check format errors, duplicate keys, empty values, and required environment variables in .env files. The output can be in either JSON or Markdown format.

Features

  • Reports invalid formats, empty values, and duplicate keys in .env files.
  • Checks for missing required environment variables.
  • Outputs reports in JSON or Markdown format.

Installation

You can install @owll/node-env-checker globally or as a project dependency.

Global Installation

To install globally, use the following command:

npm install -g @owll/node-env-checker

Project-based Installation

To install as a project dependency:

npm install @owll/node-env-checker --save-dev

Then, you can run the @owll/node-env-checker command:

npx @owll/node-env-checker

Usage

Basic Usage

By default, @owll/node-env-checker checks the .env files in the current directory for invalid formats, empty values, and duplicate keys.

npx @owll/node-env-checker

Required Keys Check

If you want to check for specific required environment variables (keys), you can use the --required flag. This flag takes a comma-separated list of keys. Example usage:

npx @owll/node-env-checker --required DB_HOST,DB_USER,DB_PASS

This command will check for the specified keys in your .env files and report any missing ones.

Report Formats

JSON Format

To get the report in JSON format, use the --report json flag:

npx @owll/node-env-checker --report json

The output might look like this:

[
  {
    "file": ".env",
    "issues": [
      {
        "type": "INVALID_FORMAT",
        "line": 3,
        "content": "DB_HOST="
      },
      {
        "type": "DUPLICATE_KEY",
        "key": "DB_USER"
      },
      {
        "type": "EMPTY_VALUE",
        "key": "DB_PASS"
      }
    ]
  }
]

Markdown Format

To get the report in Markdown format, use the --report md flag:

npx @owll/node-env-checker --report md

The output might look like this:

# Env File Report

## .env
✅ All variables are valid.

## .env.production
- ⚠️ **Invalid Format** (line 3): `DB_HOST=`
- ❌ **Repeat Key**: `DB_USER`
- ⚠️ **Empty Value**: `DB_PASS`

Error Types

@owll/node-env-checker reports the following error types:

  • INVALID_FORMAT: Invalid format for a key-value pair (e.g., KEY= instead of KEY=VALUE).
  • DUPLICATE_KEY: A key appears multiple times.
  • EMPTY_VALUE: A key has an empty value.
  • MISSING_REQUIRED: A required key is missing.

Other Commands

Help

To view all available options:

npx @owll/node-env-checker --help

This command will provide information about all available options and parameters.

Support

For support, you can reach out via Buy Me A Coffee.

License

This project is licensed under the MIT License.