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
path-key
Get the PATH environment variable key cross-platform
214.2m+114%-5 years ago
4.0.0
ESM onlyNoneConfiguration
dotenv
Loads environment variables from .env file
130.9m+122%-2 days ago
18.0.3
CommonJSBundledConfiguration, Node.js utilities
cosmiconfig
Find and load configuration from a package.json property, rc file, TypeScript module, and more!
98.7m+47%-25 days ago
10.0.1
CommonJSBundledConfiguration
proxy-from-env
Offers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.
90m+101%-6 months ago
2.1.0
ESM + CommonJSNoneConfiguration, Node.js utilities
lilconfig
A zero-dependency alternative to cosmiconfig
60.7m+85%-1 year ago
3.1.3
CommonJSBundledConfiguration
@next/env
Next.js dotenv file loading
46.3m+278%-2 days ago
16.3.6
CommonJSBundledConfiguration, React
dotenv-expand
Expand environment variables using dotenv
32.2m+77%-1 month ago
1000.0.0
CommonJSBundledConfiguration, Node.js utilities
rc
hardwired configuration loader
31.9m+58%-8 years ago
1.2.8
CommonJSNoneConfiguration
cross-env
Run scripts that set and use environment variables across platforms
18.4m+98%-11 months ago
10.1.0
ESM onlyBundledNode.js utilities, Configuration
config-chain
HANDLE CONFIGURATION ONCE AND FOR ALL
17.2m+63%-5 years ago
1.1.13
-NoneConfiguration
configstore
Easily load and save config without having to think about where and how
13.9m+35%-7 months ago
8.0.0
ESM onlyBundledConfiguration
conf
Simple config handling for your app or module
10.1m+717%-7 months ago
15.1.0
ESM onlyBundledConfiguration, Parsers and serialisers
cache-base
Basic object cache with `get`, `set`, `del`, and `has` methods for node.js/javascript projects.
9.5m-12%-4 years ago
4.0.2
CommonJSNoneCaching, State management
getenv
Get and typecast environment variables.
9.3m+291%-1 year ago
2.0.0
CommonJSNoneConfiguration
global-agent
Global HTTP/HTTPS proxy configurable using environment variables.
9.1m+171%-6 months ago
4.1.3
CommonJSBundledNode.js utilities, Configuration
@dotenvx/dotenvx
a secure dotenv–from the creator of `dotenv`
8.8m+1056%-2 days ago
2.30.0
CommonJSBundledConfiguration, Node.js utilities
@dotenvx/primitives
a secure dotenv–from the creator of `dotenv`
4m--2 days ago
3.0.3
CommonJSNoneConfiguration, Node.js utilities
unconfig-core
A universal solution for loading configurations.
3.6m--7 months ago
7.5.0
ESM onlyBundledConfiguration
gitconfiglocal
parse the .git/config file into a useful data structure
3.3m+6%-7 years ago
2.1.0
-NoneConfiguration
env-ci
Get environment variables exposed by CI services
2.7m+34%-1 year ago
11.2.0
ESM onlyNoneCloud SDKs, Configuration
requirejs-config-file
A small api to read and write your requirejs config file
2.5m+62%-5 years ago
4.0.0
CommonJSNoneConfiguration
resolve-options
Resolve an options object based on configuration.
2m-2%-4 years ago
2.0.0
CommonJSNoneConfiguration
rc-config-loader
load config file from .{product}rc.{json,yml,js}
1.3m+35%-6 months ago
4.1.4
--Configuration
lazy-universal-dotenv
Robust Environment Configuration for Universal Applications.
1.3m-41%-3 years ago
4.0.0
--Configuration, Node.js utilities
env-cmd
Executes a command using the environment variables in an env file
1.2m+1%-1 year ago
11.0.0
--Configuration, Node.js utilities
config
Configuration control for production node deployments
1.2m+14%-1 month ago
5.0.1
--Configuration
unconfig
A universal solution for loading configurations.
1.2m+70%-7 months ago
7.5.0
ESM onlyBundledConfiguration
electron-store
Simple data persistence for your Electron app or module - Save and load user settings, app state, cache, etc
1.1m+263%-11 months ago
11.0.2
ESM onlyBundledConfiguration
envify
Selectively replace Node-style environment variables with plain strings.
1m+83%-9 years ago
4.1.0
CommonJSNoneConfiguration
dotenv-defaults
dotenv... but with defaults!
986.3k-0%-7 months ago
6.0.0
ESM onlyBundledConfiguration, Node.js utilities
config-file-ts
Use Typescript for configuration files. Types for safety. Compiled for speed.
942.7k+99%-2 years ago
0.2.8-rc1
CommonJSBundledTypeScript tooling, Configuration
dotenv-webpack
A simple webpack plugin to support dotenv.
929.6k-8%-6 months ago
9.0.0
CommonJSBundledConfiguration, Node.js utilities
@secretlint/config-loader
Config loader for secretlint.
884.2k---29 days ago
13.0.5
ESM onlyBundledConfiguration, Node.js utilities
convict
Featureful configuration management library for Node.js (nested structure, schema validation, etc.)
883.5k+44%-6 months ago
6.2.5
CommonJSNoneConfiguration, Schema validation
run-con
hardwired configuration loader
873.4k+66%-2 months ago
1.3.3
CommonJSNoneConfiguration
nconf
Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging.
805.1k+21%-1 year ago
0.13.0
CommonJSNoneConfiguration
dotenv-flow
Loads environment variables from `.env.[development|test|production][.local]` files
799.1k+89%-2 years ago
4.1.0
CommonJSBundledConfiguration, Node.js utilities
aws-lambda
Deploy AWS Lambda functions from command line using a json or yaml config file.
759.6k-8%-4 years ago
1.0.7
CommonJSNoneCloud SDKs, Configuration
parse-git-config
Parse `.git/config` into a JavaScript object. sync or async.
726.8k-15%-7 years ago
3.0.0
CommonJSNoneConfiguration
git-config-path
Resolve the path to the user's local or global .gitconfig.
697.7k-20%-7 years ago
2.0.0
CommonJSNoneConfiguration, Files and file systems
ci-parallel-vars
Get CI environment variables for parallelizing builds
658.5k+52%-6 years ago
1.0.1
CommonJSNoneConfiguration, Node.js utilities
env-var
Verification, sanitization, and type coercion for environment variables in Node.js
618.2k+144%-2 years ago
7.5.0
CommonJSBundledConfiguration, Node.js utilities
@secretlint/secretlint-rule-no-dotenv
A secretlint rule for dotenv
523.9k---29 days ago
13.0.5
ESM onlyBundledConfiguration, Node.js utilities
envalid
Validation for your environment variables
493.3k+56%-3 months ago
8.2.0
CommonJSBundledConfiguration, Schema validation
babel-plugin-transform-inline-environment-variables
Inline environment variables.
467.9k+61%-4 years ago
0.4.4
CommonJSNoneConfiguration, Node.js utilities
env-schema
Validate your env variables using Ajv with .env file support using Node.js built-in parseEnv
382.7k+71%-1 month ago
8.0.0
CommonJSBundledSchema validation, Configuration
env-variable
Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks
368.5k-4%-6 years ago
0.0.6
CommonJSNoneConfiguration, Node.js utilities
read-config-file
Read configuration file in various formats:
346.1k+32%-2 years ago
6.4.0
CommonJSBundledConfiguration
vite-plugin-environment
Easily expose environment variables in Vite.js
321.5k+6%-15 days ago
1.1.4
ESM onlyBundledBundler plugins and loaders, Configuration
@dotenvx/tooling
a secure dotenv–from the creator of `dotenv`
307.4k---2 months ago
1.0.3
CommonJSNoneConfiguration, 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.

  • path-keyGet the PATH environment variable key cross-platform
  • dotenvLoads environment variables from .env file
  • cosmiconfigFind and load configuration from a package.json property, rc file, TypeScript module, and more!
  • proxy-from-envOffers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.
  • lilconfigA zero-dependency alternative to cosmiconfig
  • @next/envNext.js dotenv file loading
  • dotenv-expandExpand environment variables using dotenv
  • rchardwired configuration loader
  • cross-envRun scripts that set and use environment variables across platforms
  • config-chainHANDLE CONFIGURATION ONCE AND FOR ALL
  • configstoreEasily load and save config without having to think about where and how
  • confSimple config handling for your app or module
  • cache-baseBasic object cache with `get`, `set`, `del`, and `has` methods for node.js/javascript projects.
  • getenvGet and typecast environment variables.
  • global-agentGlobal HTTP/HTTPS proxy configurable using environment variables.
  • @dotenvx/dotenvxa secure dotenv–from the creator of `dotenv`
  • @dotenvx/primitivesa secure dotenv–from the creator of `dotenv`
  • unconfig-coreA universal solution for loading configurations.
  • gitconfiglocalparse the .git/config file into a useful data structure
  • env-ciGet environment variables exposed by CI services
  • requirejs-config-fileA small api to read and write your requirejs config file
  • resolve-optionsResolve an options object based on configuration.
  • rc-config-loaderload config file from .{product}rc.{json,yml,js}
  • lazy-universal-dotenvRobust Environment Configuration for Universal Applications.
  • env-cmdExecutes a command using the environment variables in an env file
  • configConfiguration control for production node deployments
  • unconfigA universal solution for loading configurations.
  • electron-storeSimple data persistence for your Electron app or module - Save and load user settings, app state, cache, etc
  • envifySelectively replace Node-style environment variables with plain strings.
  • dotenv-defaultsdotenv... but with defaults!
  • config-file-tsUse Typescript for configuration files. Types for safety. Compiled for speed.
  • dotenv-webpackA simple webpack plugin to support dotenv.
  • @secretlint/config-loaderConfig loader for secretlint.
  • convictFeatureful configuration management library for Node.js (nested structure, schema validation, etc.)
  • run-conhardwired configuration loader
  • nconfHierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging.
  • dotenv-flowLoads environment variables from `.env.[development|test|production][.local]` files
  • aws-lambdaDeploy AWS Lambda functions from command line using a json or yaml config file.
  • parse-git-configParse `.git/config` into a JavaScript object. sync or async.
  • git-config-pathResolve the path to the user's local or global .gitconfig.
  • ci-parallel-varsGet CI environment variables for parallelizing builds
  • env-varVerification, sanitization, and type coercion for environment variables in Node.js
  • @secretlint/secretlint-rule-no-dotenvA secretlint rule for dotenv
  • envalidValidation for your environment variables
  • babel-plugin-transform-inline-environment-variablesInline environment variables.
  • env-schemaValidate your env variables using Ajv with .env file support using Node.js built-in parseEnv
  • env-variableCross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks
  • read-config-fileRead configuration file in various formats:
  • vite-plugin-environmentEasily expose environment variables in Vite.js
  • @dotenvx/toolinga secure dotenv–from the creator of `dotenv`