1.0.18 • Published 7 years ago
@shopup/utils v1.0.18
Utils
directoryImporter
Utils for importing all the exported modules from the specified directory
| Arguments | Type | Description |
|---|---|---|
| folderPath | string | The full path of the directory you want to import the files |
| exclude | string[] | A list of filenames you want to be excluded from the import process. |
Usage
// index.ts
import { directoryImporter } from '@shopup/utils';
export default directoryImporter(__dirname,['index.ts']);