4 ms·
As a TypeScript developer, my answer is to use unconfig [1]. Support for JSON, JavaScript, or best of all, TypeScript. Or wire up your own utility function wit
by retropragma 1y ago
As a TypeScript developer, my answer is to use unconfig [1]. Support for JSON, JavaScript, or best of all, TypeScript.
Or wire up your own utility function with bundle-require [2], another favorite of mine, for loading TS or JS config files.
[1]: https://github.com/antfu-collective/unconfig https://github.com/antfu-collective/unconfig
[2]: https://github.com/egoist/bundle-require https://github.com/egoist/bundle-require