minhaz1010 / folder-template-shortcut-jsx

Folder-shortcut-template-for JSX

Home Page:https://www.npmjs.com/package/fld-str

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/

pic1

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/

pic2

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.

[this works on only two level i mean (/* + * + * ../* + * + */)]

About

Folder-shortcut-template-for JSX

https://www.npmjs.com/package/fld-str