Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
react-floki
Advanced tools
A CLI tool that works with the react template and allows you to scaffold tests, containers, components and stitches them all together preventing wastage of time in setup and boilerplate code.
We’re always looking for people who value their work, so come and join us. We are hiring!
npm install -g react-floki
OR
yarn global add react-floki
To get a list of commands and usage hints use
react-generate --help
react-generate init movie-rating
Creating a test for a container or component: react-generate gt
Creating a test for an existing component: react-generate gtcom
Creating a test for an existing container: react-generate gtcon
Forcefully creating a test for a container or component: react-generate gtf
Forcefully creating a test for an existing component: react-generate gtcomf
Forcefully creating a test for an existing container: react-generate gtconf
Creating a container or component: react-generate g
Creating a component: react-generate gcom
Creating a container: react-generate gcon
Forcefully creating a container or component: react-generate gf
Forcefully creating a component: react-generate gcomf
Forcefully creating a container: react-generate gconf
Generate test for all components in directory: react-generate --all component <path-to-components>
Generate test for all containers in directory: react-generate --all containers <path-to-containers>
Generate a test util file: react-generate gtutil
Generating a utility for a loadable file : react-generate gloadable
Creating a test by specifying type, path and name: react-generate gt component src/app Button
Creating a test for an existing component by specifying path and name: react-generate gtcom src/app Button
Creating a test for an existing container by specifying path and name: react-generate gtcon src/app HomePage
Creating a component/container by specifying type, path and name: react-generate g component src/app Button
Creating a component by specifying path and name: react-generate gcom src/app Button
Creating a container by specifying path and name: react-generate gcon src/app HomePage
Generate test for all components in directory: react-generate --all component src/app/components
Generate test for all containers in directory: react-generate --all container src/app/containers
FAQs
A React component, container and test generation library
We found that react-floki demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.