How to read config in nodes

I see that n8n uses convict for config management and the configuration file sits in /packages/cli/config/index.ts. Sample usage of this file is found in /packages/cli/src/GenericHelpers.ts. Sample code from this file looks like

import * as config from '../config';
....
....
return config.get(configKey);

I would like to read this config inside different nodes. How can this be done inside a node? eg How can i read this config in /packages/nodes-base/nodes/Aws/AwsSns.node.ts

To be honest, is the config not supposed to be read in nodes.

If you however want to do it, you can simply do exactly what you wrote above.

// Absolute or relative path to the config file
import * as config from '../../../../cli/dist/config';
// Get whatever you want
console.log(config.get('port'));