fld-str
v1.0.10
Published
creating folders and file and it's jsx in one command
Downloads
6
Maintainers
Readme
CLI Tool fld-str
Usage
Creating Folders and Files
Overview
This CLI tool simplifies the creation of folder structures and files for React projects, providing a seamless approach to automate repetitive processes.
Installation
To globally install the CLI tool, use the following npm command:
sudo npm install -g fld-str
Command Structure
To create a folder and file structure, use the following command format:
For multiple folder and file creation:
mld --f /user/home/
When you run the command "fld --p /user/home/", it will create a folder named "user" in the main directory, then inside that, a folder named "home", and within the "home" folder, a file named "home.jsx" will be created. The file will contain a simple React component template.
You can chain multiple folder creation commands in a similar manner to create nested folder structures by using
( / * / * / * /..... so on)
For multiple folder and file creation:
mld --dir /components+context/home+signup+login/
Running this command will create the "components" and "context" folders in the root directory. Each of these folders will contain subfolders "home", "signup", and "login", each with a corresponding ".jsx" file and template.