About
@nanoforge-dev/config is a wrapper of class-validator and class-transformer to imports validation and transformation decorators.
Installation
Node.js 25 or newer is required.Warning
This library is of exclusive usage for other libraries. To put variables in the environment to allow libraries to use it through this config library, you must put it in.env file at the root of your project (or in your environment) :
⚠️ Prefixs are removed in libs
You can also put it in init options (every value must be string or undefined) :
Example usage
Initialize the library in your main file.Links
Contributing
Before creating an issue, please ensure that it hasn’t already been reported/suggested, and double-check the documentation.See the contribution guide if you’d like to submit a PR.
