Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-flux-cli
Advanced tools
A simple CLI to generate the basic structure of React and Flux files
A simple CLI to generate the basic structure of React and Flux files.
React-flux-cli help you to generate some React/Flux files.
Based on the configuration file, react-flux-cli automatically resolves all relative paths to the dependences of the generated files.
A configuration file is generated at ~/.rfcli.json
npm install -g react-flux-cli
All directory can be modified in the config file.
React-flux-cli does not modify existing files and does not create non-existent folder. To force the writing or editing you can use the -f option ( --force )
rfcli -j Home
// => Create HomeComponent file in ./components
rfcli -a Home
// => Create HomeActions file in ./actions
rfcli -s Home
// => Create HomeStore file in ./stores
rfcli -c Home
// => Create HomeConstants file in ./constants
Execute rfcli without option will generate all files.
rfcli -A Home
// => Create HomeComponent file in ./components
// => Create HomeActions file in ./actions
// => Create HomeStore file in ./stores
// => Create HomeConstants file in ./constants
The default component structure based on sublime-react.
Defaults flux files structure based on Flux Todo list.
To use your own file structure, you can edit ~/.rfcli.json.
To transform your code into one line, you can use : FreeFormatter.
//~/.rfcli.json
{
"COMPONENT_PATH": "components",
"ACTIONS_PATH": "actions",
"STORE_PATH": "stores",
"CONSTANTS_PATH": "constants",
"SUFFIX": true,
"filesContent": {
"component": "var React = require('react'); ...",
"advancedComponent": "var React = require('react'); ...",
"actions": "var AppDispatcher = require('../dispatcher/AppDispatcher'); ...",
"store": "var AppDispatcher = require('../dispatcher/AppDispatcher'); ...;",
"constants": "var keyMirror = require('keymirror'); ..."
}
}
MIT
FAQs
A simple CLI to generate the basic structure of React and Flux files
We found that react-flux-cli demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.