cosmiconfig の代わりになるライブラリ

npm 環境変数・設定

同じ分類でいま一番使われているのは dotenv(週 2.63億 回)、4週間で一番伸びているのは @dotenvx/dotenvx(+37.9%)です。

同じ分類のライブラリ 1行目が cosmiconfig

比較ツールで開く →
パッケージ週間DL4週比スター依存最新版の公開
cosmiconfig
Find and load configuration from a package.json property, rc file, TypeScript mo
1.68億+14.8%4,17232026-08-30
dotenv
Loads environment variables from .env file
2.63億+21.8%2.1万02026-11-09
@dotenvx/dotenvx
a secure dotenv–from the creator of `dotenv`
2,358万+37.9%5,879102026-10-20
@t3-oss/env-core
![NPM Version](https://img.shields.io/npm/v/%40t3-oss%2Fenv-core) [![JSR](https:
555万+12.0%–02026-03-22
convict
Featureful configuration management library for Node.js (nested structure, schem
181万+28.3%2,37522026-03-19
envalid
Validation for your environment variables
112万+29.4%1,59102026-10-23

「代わり」は同じ分類に入っているライブラリです。機能や書き方は同じではないので、移る前にそれぞれの公式ドキュメントで確かめてください。