0.1.0 • Published 7 years ago

crossport v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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.