1.1.2 • Published 8 years ago

autodiscover-modules v1.1.2

Weekly downloads
3
License
MIT
Repository
-
Last release
8 years ago

Usage

import path from 'path';
import autodiscover 'autodiscover-modules';

const folder = path.join(__dirname, 'modules');

autodiscover(
  folder,
  { handler: 'function', name: 'string' }
).then((modules) => {
    // do something
});

The library will give you all the modules in the modules/ directory that matches the following export signature:

{
 name: string,
 handler: function
}
1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago