Hacker News new | ask | show | jobs
by retropragma 430 days 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 [2]: https://github.com/egoist/bundle-require