register-module
Register a module with Node.js for more concise imports.
Installing
register-module
is available as an
npm package.
Usage
name: 'project' path: '/home/vinsonchuong/project' main: 'entry.js'; // Resolves to '/home/vinsonchuong/project/entry.js'; // Resolves to '/home/vinsonchuong/project/lib.js';