Quick import generator for all the file in a simple line!
- First of all, if you don't have
glob
on your project, please install it.
npm i glob
or
yarn add glob
- Clone the source code
git clone https://github.com/furkanuzundev/import-generator.git
-
Copy
import-generator.js
into folder that you want to import files. -
Open console, go to the
import-generator.js
path. (like app/src/assets/images) -
Type
node import-generator.js
here. -
It will generate
index[import-generator].js
into folder. -
Bingo!
If you have any confusion, check the example: https://github.com/furkanuzundev/import-generator/tree/main/example
The source code is made available under the MIT license
If you like this project, you can follow me and give a star 🤩