Quick import generator for all the file in a simple line!
- First of all, if you don't have
globon your project, please install it.
npm i globor
yarn add glob- Clone the source code
git clone https://github.com/furkanuzundev/import-generator.git-
Copy
import-generator.jsinto folder that you want to import files. -
Open console, go to the
import-generator.jspath. (like app/src/assets/images) -
Type
node import-generator.jshere. -
It will generate
index[import-generator].jsinto 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 🤩
