
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
react-folder-generator
Advanced tools
A CLI tool to generate React component folders with TypeScript and CSS files
A simple Node.js CLI tool to scaffold React component boilerplate with flexible styling options.
.jsx) and TypeScript (.tsx)Make sure you have Node.js installed.
npm install -g react-folder-generator
Or if using locally:
git clone https://github.com/Thetourist2051/react-folder-generator.git
cd react-folder-generator
npm install
generate-component <ComponentName> [options]
generate-component Button
Creates:
Button/index.jsxButton/index.cssgenerate-component AlertBox --ts --module-scss --scoped-style
Creates:
AlertBox/AlertBox.tsxAlertBox/AlertBox.module.scssgenerate-component Card --scss
Creates:
Card/index.jsxCard/index.scssgenerate-component Modal --ts --module-css
Creates:
Modal/index.tsxModal/index.module.css| Option | Description |
|---|---|
--ts | Use TypeScript (.tsx) |
--js | Use JavaScript (.jsx) (default) |
--css | Include plain CSS |
--scss | Include SCSS |
--module-css | Use CSS Modules |
--module-scss | Use SCSS Modules |
--scoped-style | Use scoped style file with component name |
⚠️ You can only choose one of
--css,--scss,--module-css, or--module-scssper component.
When using:
generate-component Example --ts --scss --scoped-style
It creates:
Example/
├── Example.tsx
└── Example.scss
Afriduzzaman
Experienced Web Developer | React, Angular, Ionic, React Native
GitHub: https://github.com/Thetourist2051
Email: [thetourist2051@gmail.com]
MIT
Feel free to contribute or raise issues!
FAQs
A CLI tool to generate React component folders with TypeScript/JavaScript and CSS/SCSS files with modular or scoped styling options
The npm package react-folder-generator receives a total of 3 weekly downloads. As such, react-folder-generator popularity was classified as not popular.
We found that react-folder-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.