1.1.2 • Published 6 years ago

autodiscover-modules v1.1.2

Weekly downloads
3
License
MIT
Repository
-
Last release
6 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

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago