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
shell-env
Get environment variables from the shell
279.8k+945%-7 months ago
4.0.3
ESM onlyBundledConfiguration, Node.js utilities
ci-env
Environment variables exposed by CI tools
265.1k+29%--
1.17.0
CommonJSNoneConfiguration, Node.js utilities
react-native-dotenv
Load .env into React Native with import statements. A Babel plugin that inlines environment variables at build time.
261.3k+52%-3 days ago
5.0.0
CommonJSNoneConfiguration, React
varlock
AI-safe .env files: Schemas for agents, Secrets for humans.
194k+24258%-6 days ago
1.20.0
ESM + CommonJSBundledConfiguration, Node.js utilities
dotenv-safe
Load environment variables from .env and ensure they are defined
192.3k+16%-2 years ago
9.1.0
CommonJSNoneConfiguration, Node.js utilities
config-master
Load stored configuration data
187.8k+4%-9 years ago
3.1.0
CommonJSNoneConfiguration
libnpmconfig
Standalone library for reading/writing/managing npm configurations
173.3k-26%--
1.2.1
-NoneConfiguration
find-config
Find the first config file matching a given name in the current directory or the nearest ancestor directory.
172.4k+12%-10 years ago
1.0.0
CommonJSNoneFiles and file systems, Configuration
colors-option
Let users toggle colors
156.9k-9%-10 months ago
6.1.2
ESM onlyBundledCLI tools and terminal utilities, Configuration
@neon/env
Resolve and inject Neon connection strings for the branch selected by your neon.ts policy. fetchEnv / parseEnv plus a `neon-env` CLI with `run` and `export`.
155.2k---2 days ago
1.4.4
ESM onlyBundledConfiguration, Node.js utilities
rulesync
Unified AI rules management CLI tool that generates configuration files for various AI development tools
148.1k+522%-1 day ago
18.0.0
ESM + CommonJSBundledCLI tools and terminal utilities, Configuration
serverless-dotenv-plugin
Preload environment variables with dotenv into serverless.
131.6k-9%-3 years ago
6.0.0
CommonJSNoneConfiguration, Node.js utilities
@adonisjs/env
Environment variable manager for Node.js
94.6k---21 days ago
7.1.0
ESM onlyBundledConfiguration
envfile
Parse and stringify the environment configuration files and format, also known as .env files and dotenv files
83.7k+5%-2 years ago
7.1.0
ESM + CommonJSBundledConfiguration, Node.js utilities
auto-config-loader
Find and load configuration from a package.json property, rc file, or CommonJS module.
82.2k+78%-6 months ago
3.0.4
ESM + CommonJSBundledConfiguration, TypeScript tooling
dotenv-parse-variables
Parse dotenv files for Boolean, Array, and Number variable types, built for CrocodileJS
79.8k-20%-5 years ago
2.0.0
CommonJSNoneConfiguration, Node.js utilities
rcfinder
Find a config file (like .jshintrc) by walking up from a specific directory.
78.9k+2%-10 years ago
0.1.9
CommonJSNoneConfiguration
dotenv-json
Load environment variables via a JSON file
72.9k+128%-8 years ago
1.0.0
CommonJSNoneConfiguration, Node.js utilities
convict-format-with-validator
Formats 'email', 'ipaddress' and 'url' for convict
69k+15%-5 years ago
6.2.0
CommonJSNoneConfiguration, Email
update-dotenv
Write updates to a .env file
68.6k+198%-7 years ago
1.1.1
CommonJSNoneConfiguration, Node.js utilities
znv
Parse your environment with Zod schemas
60.4k+29%-1 year ago
0.5.0
ESM + CommonJSBundledSchema validation, Node.js utilities
read-env
Transform environment variables into JSON object with sanitized values.
56.1k+10%-6 years ago
2.0.0
ESM + CommonJSBundledConfiguration, Node.js utilities
cypress-dotenv
Cypress plugin that enables compatibility with dotenv
47.2k-8%-1 year ago
3.0.1
CommonJSNoneConfiguration, Node.js utilities
@dotenv-run/core
core library to load environment variables with monorepo support
45.9k---1 year ago
1.3.8
ESM + CommonJSBundledConfiguration, Node.js utilities
biome
A simple way to manage environment variables on a per-project basis
44.2k+43%-10 years ago
0.3.3
CommonJSNoneConfiguration, Node.js utilities
@varlock/vite-integration
Vite plugin to use varlock for .env file loading - adds validation, type-safety, and extra security features
42.6k---13 days ago
1.5.2
ESM onlyBundledConfiguration, Schema validation
rollup-plugin-inject-process-env
Inject environment variables in process.env with Rollup
42.2k+154%-5 years ago
1.3.1
ESM + CommonJSBundledBundler plugins and loaders, Configuration
next-dynenv
Dynamic runtime environment variables for Next.js - populate your environment at runtime, not build time.
31.7k--5 months ago
4.0.6
ESM onlyBundledStatic site generators and meta-frameworks, Configuration
dotenv-extended
A module for loading .env files and optionally loading defaults and a schema for validating all values are present.
31.6k-2%-7 months ago
3.1.0
CommonJSBundledConfiguration, Node.js utilities
@varlock/google-secret-manager-plugin
Varlock plugin to load secrets from Google Cloud Secret Manager
31.2k---1 month ago
1.2.2
ESM onlyNoneConfiguration, Cloud SDKs
@comunica/config-query-sparql
default configuration files for Comunica SPARQL
30.2k---10 days ago
5.4.1
CommonJSBundledConfiguration, GraphQL
@ngx-env/builder
Easily inject environment variables into your Angular applications
29.5k---1 month ago
22.0.0
-NoneConfiguration, Angular
bunfig
A smart & fully-typed configuration loader for Bun.
29.3k-84%-1 month ago
0.15.19
ESM onlyBundledConfiguration
@intlayer/config
Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.
28.6k---today
9.5.9
ESM + CommonJSBundledInternationalisation, TypeScript tooling
defaulty
Copies missing properties to the target object.
28.6k+120%-8 years ago
2.1.0
CommonJSNoneConfiguration
@dotenv-run/webpack
Run your scripts with dotenv variables
28.5k---1 year ago
1.5.2
ESM + CommonJSBundledConfiguration, Node.js utilities
babel-plugin-inline-dotenv
Load your `.env` file and replace `process.env.MY_VARIABLE` with the value you set.
27.8k+58%-4 years ago
1.7.0
CommonJSNoneConfiguration, Node.js utilities
@varlock/1password-plugin
Varlock plugin to load data from 1Password vaults
27.7k---1 month ago
2.0.4
ESM onlyNoneConfiguration, Node.js utilities
@import-meta-env/cli
Build once, deploy anywhere. Startup/runtime environment variable solution for JavaScript.
26.9k---1 year ago
0.7.4
-NoneConfiguration
data-store
Easily persist and load config data. No dependencies.
26.6k-29%-7 years ago
4.0.3
CommonJSNoneConfiguration, Caching
@julr/vite-plugin-validate-env
✅ Vite plugin for validating your environment variables
26.6k---6 months ago
2.2.2
ESM onlyNoneSchema validation, Bundler plugins and loaders
custom-env
Custom env is a library built to make development more feasible by allowing multiple .env configurations for different environments.
24.9k-6%-2 years ago
2.0.6
CommonJSNoneConfiguration, Node.js utilities
@import-meta-env/unplugin
Build once, deploy anywhere. Startup/runtime environment variable solution for JavaScript.
24.9k---1 year ago
0.6.3
CommonJSBundledConfiguration, Bundler plugins and loaders
env
Environment variable manager
23.9k+23%-14 years ago
0.0.2
CommonJSNoneConfiguration
@cubejs-backend/dotenv
Loads environment variables from .env file
23.8k---5 years ago
9.0.2
CommonJSBundledConfiguration, Node.js utilities
arkenv
Interactive CLI for scaffolding ArkEnv projects
23.4k+5288%-1 day ago
1.0.0-rc.2
ESM onlyBundledCLI tools and terminal utilities, Configuration
@varlock/aws-secrets-plugin
Varlock plugin to load secrets from AWS (supports both Secrets Manager and Systems Manager Parameter Store)
23.3k---1 month ago
1.2.3
ESM onlyNoneConfiguration, Node.js utilities
ts-dotenv
Strongly-typed environment variables from .env & process.env
23.2k+215%-3 years ago
0.9.1
CommonJSBundledConfiguration, Node.js utilities
intelli-espower-loader
Make espower-lodaer config file unnecessary.
22.8k-83%--
1.1.0
CommonJSNoneConfiguration
dotenv-vault
A secrets manager for .env files – from the same people that pioneered dotenv.
22.3k+35%-1 year ago
1.27.0
CommonJSBundledConfiguration, Node.js utilities

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.

  • shell-envGet environment variables from the shell
  • ci-envEnvironment variables exposed by CI tools
  • react-native-dotenvLoad .env into React Native with import statements. A Babel plugin that inlines environment variables at build time.
  • varlockAI-safe .env files: Schemas for agents, Secrets for humans.
  • dotenv-safeLoad environment variables from .env and ensure they are defined
  • config-masterLoad stored configuration data
  • libnpmconfigStandalone library for reading/writing/managing npm configurations
  • find-configFind the first config file matching a given name in the current directory or the nearest ancestor directory.
  • colors-optionLet users toggle colors
  • @neon/envResolve and inject Neon connection strings for the branch selected by your neon.ts policy. fetchEnv / parseEnv plus a `neon-env` CLI with `run` and `export`.
  • rulesyncUnified AI rules management CLI tool that generates configuration files for various AI development tools
  • serverless-dotenv-pluginPreload environment variables with dotenv into serverless.
  • @adonisjs/envEnvironment variable manager for Node.js
  • envfileParse and stringify the environment configuration files and format, also known as .env files and dotenv files
  • auto-config-loaderFind and load configuration from a package.json property, rc file, or CommonJS module.
  • dotenv-parse-variablesParse dotenv files for Boolean, Array, and Number variable types, built for CrocodileJS
  • rcfinderFind a config file (like .jshintrc) by walking up from a specific directory.
  • dotenv-jsonLoad environment variables via a JSON file
  • convict-format-with-validatorFormats 'email', 'ipaddress' and 'url' for convict
  • update-dotenvWrite updates to a .env file
  • znvParse your environment with Zod schemas
  • read-envTransform environment variables into JSON object with sanitized values.
  • cypress-dotenvCypress plugin that enables compatibility with dotenv
  • @dotenv-run/corecore library to load environment variables with monorepo support
  • biomeA simple way to manage environment variables on a per-project basis
  • @varlock/vite-integrationVite plugin to use varlock for .env file loading - adds validation, type-safety, and extra security features
  • rollup-plugin-inject-process-envInject environment variables in process.env with Rollup
  • next-dynenvDynamic runtime environment variables for Next.js - populate your environment at runtime, not build time.
  • dotenv-extendedA module for loading .env files and optionally loading defaults and a schema for validating all values are present.
  • @varlock/google-secret-manager-pluginVarlock plugin to load secrets from Google Cloud Secret Manager
  • @comunica/config-query-sparqldefault configuration files for Comunica SPARQL
  • @ngx-env/builderEasily inject environment variables into your Angular applications
  • bunfigA smart & fully-typed configuration loader for Bun.
  • @intlayer/configRetrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.
  • defaultyCopies missing properties to the target object.
  • @dotenv-run/webpackRun your scripts with dotenv variables
  • babel-plugin-inline-dotenvLoad your `.env` file and replace `process.env.MY_VARIABLE` with the value you set.
  • @varlock/1password-pluginVarlock plugin to load data from 1Password vaults
  • @import-meta-env/cliBuild once, deploy anywhere. Startup/runtime environment variable solution for JavaScript.
  • data-storeEasily persist and load config data. No dependencies.
  • @julr/vite-plugin-validate-env✅ Vite plugin for validating your environment variables
  • custom-envCustom env is a library built to make development more feasible by allowing multiple .env configurations for different environments.
  • @import-meta-env/unpluginBuild once, deploy anywhere. Startup/runtime environment variable solution for JavaScript.
  • envEnvironment variable manager
  • @cubejs-backend/dotenvLoads environment variables from .env file
  • arkenvInteractive CLI for scaffolding ArkEnv projects
  • @varlock/aws-secrets-pluginVarlock plugin to load secrets from AWS (supports both Secrets Manager and Systems Manager Parameter Store)
  • ts-dotenvStrongly-typed environment variables from .env & process.env
  • intelli-espower-loaderMake espower-lodaer config file unnecessary.
  • dotenv-vaultA secrets manager for .env files – from the same people that pioneered dotenv.