0.1.0 • Published 8 years ago
crossport v0.1.0
Crossport
Dynamically import a directory and export its contents all at once.
Usage
Basic use:
const crossport = require('crossport');
crossport.webpack(require, exports);Crossport uses the require you pass to get the contents of the current directory by default, import them all and attach them as iterable properties to the same exports you pass. Since exports is passed by reference, the calling file now exposes all the modules available in the directory.
0.1.0
8 years ago