literal-require
v1.0.5
Published
A literal templating for Node require
Downloads
4
Readme
Nodejs literal templating for node native require module.
Usage
npm i literal-require --save
require('literal-require')
Add namespace to your application package.json
{
...
-> "namespace": {
"@application": "${ process.cwd() }/application"
}
}
Then use in your require's as follows
require('@application/config.json')
require('@application/example-module')