require-module-exports
v2.0.1
Published
require module.exports or exports from file.
Downloads
68
Readme
require-module-exports
require module.exports
or exports
from file
Usage
Pure commonjs module
const { requireModuleFile } = require('require-module-exports');
const moduleExports = requireModuleFile('./path/to/file.js');
Nodejs environment module
const { loadModuleFile } = require('require-module-exports');
const moduleExports = loadModuleFile('./path/to/file.js');