1.1.0 • Published 5 years ago

@janiscommerce/modules-path v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

modules-path

The modules-path module allows to include modules recursively.

Installation

npm install @janiscommerce/modules-path

Example

const ModulesPath = require('@janiscommerce/modules-path');

const modulePath = ModulesPath.get('modules', 'product'); // expected result: 'node/process/path/modules/other/paths/product'

require(modulePath);