Skip to content
JS
Package category

Configuration

Load and validate configuration from files and environment variables.

263 packages10 comparisons

Packages compared

263 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
mega-linter-runner
Local runner for MegaLinter
2.6k-65%-20 days ago
10.1.0
ESM onlyNoneLinting and formatting, Parsers and serialisers
nestjs-config
Easy to use Nest configuration module
2.5k-31%--
1.4.11
CommonJSNoneConfiguration
centig
The Configuration Management library for your JavaScript application
2.5k+160%-6 years ago
1.1.3
CommonJSBundledConfiguration
exp-config
Simple configuration management
2.5k+9%--
5.0.0
CommonJSBundledConfiguration
parse-env-string
Parse a string containing environment variables to a key/value object
2.4k-35%-3 years ago
1.0.1
CommonJSNoneConfiguration, Node.js utilities
universal-config
Configuration for your universal Javascript application
2.3k+12%-9 years ago
0.3.0
CommonJSNoneBundlers, Configuration
@varlock/bitwarden-plugin
Varlock plugin to load secrets from Bitwarden Secrets Manager and Password Manager (and Vaultwarden)
2.3k---1 month ago
2.0.1
ESM onlyNoneConfiguration, Node.js utilities
@artsy/multienv
Load multiple dotenv style environment files.
2.3k---3 months ago
1.8.0
CommonJSNoneConfiguration, Node.js utilities
dotenv-flow-webpack
A webpack plugin that allows you to securely use environment variables within your javascript web application, loading them using dotenv-flow's `.env*` files loading strategy.
2.3k-54%-2 years ago
2.0.0
CommonJSNoneConfiguration, Bundler plugins and loaders
envar
Library to read environment variables, including npm package config, custom config file, command line and default object
2.3k-72%-10 years ago
2.0.0
CommonJSNoneCLI tools and terminal utilities, Configuration
sync-dotenv
Keep your .env in sync with .env.example
2.3k+70%-4 years ago
2.7.0
CommonJSBundledConfiguration, Node.js utilities
env-vars-doctor
Environment variable management for monorepos - sync, validate, and diagnose .env files across workspaces
2.2k--7 months ago
1.4.1
ESM + CommonJSBundledConfiguration, Build tools
env2json
Export environment variables to JSON or JavaScript
2.2k+120%-8 years ago
1.1.0
CommonJSNoneNode.js utilities, Parsers and serialisers
template2env
A micro dependency that interpolates environment variables
2.1k-15%-10 years ago
1.0.4
CommonJSNoneConfiguration
dotenv-cra
Create React App style dotenv support for Node projects.
2.1k-12%-3 years ago
3.0.3
CommonJSNoneConfiguration, Node.js utilities
@optique/config
Configuration file support for Optique with Standard Schema validation
1.9k---9 days ago
1.3.0
ESM + CommonJSBundledCLI tools and terminal utilities, Schema validation
var
Use strongly typed environment variables like a boss
1.9k+126%-6 years ago
0.4.0
CommonJSNoneConfiguration, Node.js utilities
@tltdh61/dotenvrtdb
A CLI tool to load environment variables from .env files with remote database support
1.9k---4 months ago
1.260430.11650
CommonJSNoneConfiguration, Node.js utilities
middy-env
Environment variable middleware for the middy framework
1.9k+41%-5 years ago
2.0.0
CommonJSNoneConfiguration, Cloud SDKs
valibot-env
type-safe environment variables with valibot
1.9k+91%-11 months ago
1.0.0
ESM onlyBundledConfiguration, Node.js utilities
@onlineapps/runtime-config
Runtime configuration resolver with schema-driven priority (explicit config → ENV → owner defaults)
1.9k---10 days ago
1.2.0
CommonJSNoneConfiguration
@octocodeai/config
Octocode unified env + config loader — zero deps, shared by MCP, CLI, extension, agent, and standalone skills.
1.9k---14 days ago
20.0.0
ESM onlyBundledConfiguration, Node.js utilities
env-yaml
Minimal YAML .env file loader
1.8k+13%-9 years ago
0.1.2
CommonJSNoneConfiguration, Node.js utilities
@varlock/astro-integration
Astro integration to use varlock for .env file loading - adds validation, type-safety, and extra security features
1.8k---13 days ago
1.4.2
ESM onlyBundledConfiguration, Schema validation
rcfile
Loads library configuration in all possible ways
1.8k-80%--
1.0.3
CommonJSNoneConfiguration
@beesley/ts-env
An environment variable reader for TypeScript
1.8k---2 years ago
1.0.1
ESM + CommonJSBundledTypeScript tooling, Configuration
envinos
Sync your local environment variables from external source shared among developers
1.7k+228%-1 year ago
1.0.6
ESM + CommonJSBundledConfiguration, Node.js utilities
aws-param-env-sdkv3
Module for synchronously loading AWS SSM Parameter Store values into environment variables, fork of aws-param-env using awsdkv3
1.7k+1107%-3 years ago
3.0.0
CommonJSNoneCloud SDKs, Configuration
nconf-esm
Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging.
1.7k-54%--
0.0.6
ESM + CommonJSBundledConfiguration
mix-env-file
Allows Laravel Mix to use to a specific .env file
1.7k-46%-5 years ago
0.1.1
CommonJSNoneConfiguration, Node.js utilities
@nitra/check-env
Check that the critical environment variables are set
1.7k---2 months ago
4.2.1
ESM onlyBundledConfiguration, Node.js utilities
camelspace
Transform flat ENVIRONMENT_VARIABLES into deep { environment: { variables } } objects and vice versa.
1.7k-41%-5 years ago
2.0.0
CommonJSNoneConfiguration, Node.js utilities
serverless-plugin-static-env
Replace environment variables with static strings before deployment. It is for Lambda @ Edge.
1.6k+51%-5 years ago
1.0.0
CommonJSNoneConfiguration, Node.js utilities
@varlock/azure-key-vault-plugin
Varlock plugin to load secrets from Azure Key Vault
1.6k---1 month ago
1.2.3
ESM onlyNoneConfiguration, Node.js utilities
require-environment-variables
Require specific environment variables. If they don't exist, the application exits
1.5k+77%-2 years ago
2.0.0
CommonJSNoneConfiguration, Node.js utilities
multi-ini
An ini-file parser which supports multi line, multiple levels and arrays to get a maximum of compatibility with Zend config files.
1.5k-61%--
2.3.2
CommonJSNoneConfiguration, Parsers and serialisers
yaml-env-defaults
Read yaml file with environment variables substitution
1.5k-53%-3 years ago
2.0.5
CommonJSBundledConfiguration, Node.js utilities
envsitter-guard
OpenCode plugin that prevents agents/tools from reading or editing sensitive .env* files, while still allowing safe inspection via EnvSitter.
1.5k--8 months ago
0.0.4
ESM onlyBundledConfiguration, Node.js utilities
envsitter
Safely inspect and match .env secrets without exposing values
1.5k--8 months ago
0.0.4
ESM onlyBundledConfiguration, Node.js utilities
etc
Configuration loader for node.js applications
1.5k+144%--
1.1.2
CommonJSNoneConfiguration, Database clients and drivers
parse-pairs
Parse key-value pairs (like environment variables)
1.4k+28%-3 years ago
2.0.0
-NoneConfiguration, Node.js utilities
cz
A simple config utility for nodejs
1.4k-34%--
1.8.2
CommonJSNoneConfiguration
@hubble-ventures/infisicml
Declarative Infisical secret manifests for monorepos — pull, validate, and diff per-package secrets, with native GitHub Actions support.
1.3k---1 month ago
3.0.0
ESM onlyBundledBuild tools, Configuration
@darkobits/env
Functional environment variable getter/parser.
1.3k---3 years ago
2.0.0
ESM onlyBundledConfiguration
envkey
EnvKey secures and simplifies configuration and secrets management.
1.3k+6%-3 years ago
2.5.1
CommonJSNoneConfiguration
@apst/biome
A shareable Biome configuration
1.3k---3 months ago
0.3.2
ESM onlyNoneTypeScript tooling, Configuration
@dotenvx/dotenvx-ext-vault
🔐 manage .env.vault files
1.3k---1 year ago
0.3.2
CommonJSNoneConfiguration, Node.js utilities
local-repl
Project-specific REPL configuration
1.3k-43%--
4.0.0
-NoneCLI tools and terminal utilities, Configuration
next-runtime-dotenv
Expose environment variables to the runtime config of Next.js
1.2k-5%-3 years ago
1.5.1
CommonJSNoneConfiguration, Node.js utilities
@asafarim/envage
Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders
1.2k---2 months ago
0.4.2
ESM onlyBundledConfiguration, Build tools

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.

  • mega-linter-runnerLocal runner for MegaLinter
  • nestjs-configEasy to use Nest configuration module
  • centigThe Configuration Management library for your JavaScript application
  • exp-configSimple configuration management
  • parse-env-stringParse a string containing environment variables to a key/value object
  • universal-configConfiguration for your universal Javascript application
  • @varlock/bitwarden-pluginVarlock plugin to load secrets from Bitwarden Secrets Manager and Password Manager (and Vaultwarden)
  • @artsy/multienvLoad multiple dotenv style environment files.
  • dotenv-flow-webpackA webpack plugin that allows you to securely use environment variables within your javascript web application, loading them using dotenv-flow's `.env*` files loading strategy.
  • envarLibrary to read environment variables, including npm package config, custom config file, command line and default object
  • sync-dotenvKeep your .env in sync with .env.example
  • env-vars-doctorEnvironment variable management for monorepos - sync, validate, and diagnose .env files across workspaces
  • env2jsonExport environment variables to JSON or JavaScript
  • template2envA micro dependency that interpolates environment variables
  • dotenv-craCreate React App style dotenv support for Node projects.
  • @optique/configConfiguration file support for Optique with Standard Schema validation
  • varUse strongly typed environment variables like a boss
  • @tltdh61/dotenvrtdbA CLI tool to load environment variables from .env files with remote database support
  • middy-envEnvironment variable middleware for the middy framework
  • valibot-envtype-safe environment variables with valibot
  • @onlineapps/runtime-configRuntime configuration resolver with schema-driven priority (explicit config → ENV → owner defaults)
  • @octocodeai/configOctocode unified env + config loader — zero deps, shared by MCP, CLI, extension, agent, and standalone skills.
  • env-yamlMinimal YAML .env file loader
  • @varlock/astro-integrationAstro integration to use varlock for .env file loading - adds validation, type-safety, and extra security features
  • rcfileLoads library configuration in all possible ways
  • @beesley/ts-envAn environment variable reader for TypeScript
  • envinosSync your local environment variables from external source shared among developers
  • aws-param-env-sdkv3Module for synchronously loading AWS SSM Parameter Store values into environment variables, fork of aws-param-env using awsdkv3
  • nconf-esmHierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging.
  • mix-env-fileAllows Laravel Mix to use to a specific .env file
  • @nitra/check-envCheck that the critical environment variables are set
  • camelspaceTransform flat ENVIRONMENT_VARIABLES into deep { environment: { variables } } objects and vice versa.
  • serverless-plugin-static-envReplace environment variables with static strings before deployment. It is for Lambda @ Edge.
  • @varlock/azure-key-vault-pluginVarlock plugin to load secrets from Azure Key Vault
  • require-environment-variablesRequire specific environment variables. If they don't exist, the application exits
  • multi-iniAn ini-file parser which supports multi line, multiple levels and arrays to get a maximum of compatibility with Zend config files.
  • yaml-env-defaultsRead yaml file with environment variables substitution
  • envsitter-guardOpenCode plugin that prevents agents/tools from reading or editing sensitive .env* files, while still allowing safe inspection via EnvSitter.
  • envsitterSafely inspect and match .env secrets without exposing values
  • etcConfiguration loader for node.js applications
  • parse-pairsParse key-value pairs (like environment variables)
  • czA simple config utility for nodejs
  • @hubble-ventures/infisicmlDeclarative Infisical secret manifests for monorepos — pull, validate, and diff per-package secrets, with native GitHub Actions support.
  • @darkobits/envFunctional environment variable getter/parser.
  • envkeyEnvKey secures and simplifies configuration and secrets management.
  • @apst/biomeA shareable Biome configuration
  • @dotenvx/dotenvx-ext-vault🔐 manage .env.vault files
  • local-replProject-specific REPL configuration
  • next-runtime-dotenvExpose environment variables to the runtime config of Next.js
  • @asafarim/envageSecure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders