hello-index is an auto-generated (and customizable) index file to require all files in a directory.
yarn add hello-index
'use strict'
const index = require('hello-index')
module.exports = index(__dirname)By default, all files and directories in __dirname will be added to the export list. All dotfiles will be ignored.
function (basePath, [options])
case: AStringexplaining how to export filenames, can be one ofexact(match case exactly),camel(use camelCase), orclass(use ClassName case) (default:camel)ignore: AnArrayof files or directories to ignore (default:[])