cosmiconfig の代わりになるライブラリ
npm 環境変数・設定
同じ分類でいま一番使われているのは dotenv(週 2.63億 回)、4週間で一番伸びているのは @dotenvx/dotenvx(+37.9%)です。
同じ分類のライブラリ 1行目が cosmiconfig
比較ツールで開く →| パッケージ | 週間DL | 4週比 | 最新版の公開 |
|---|---|---|---|
| cosmiconfig Find and load configuration from a package.json property, rc file, TypeScript mo | 1.68億 | +14.8% | 2026-08-30 |
| dotenv Loads environment variables from .env file | 2.63億 | +21.8% | 2026-11-09 |
| @dotenvx/dotenvx a secure dotenv–from the creator of `dotenv` | 2,358万 | +37.9% | 2026-10-20 |
| @t3-oss/env-core  [![JSR](https: | 555万 | +12.0% | 2026-03-22 |
| convict Featureful configuration management library for Node.js (nested structure, schem | 181万 | +28.3% | 2026-03-19 |
| envalid Validation for your environment variables | 112万 | +29.4% | 2026-10-23 |
「代わり」は同じ分類に入っているライブラリです。機能や書き方は同じではないので、移る前にそれぞれの公式ドキュメントで確かめてください。