Skip to main content

NanoForge


npm versionnpm downloadsTests statusLast commitContributors

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) :
You must prefix your variables according to this table : ⚠️ 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.
Using this config

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.

Help

If you don’t understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don’t hesitate to ask questions in discussions.