crossport

0.1.0 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i crossport

      Weekly Downloads

      1

      Version

      0.1.0

      License

      MIT

      Last publish

      Collaborators

      • austinbillings