Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Alfred is a command line tool, a suite of helper commands for react developers ## Installation Install globally and use anywhere :
Alfred is a command line tool, a suite of helper commands for react developers
Install globally and use anywhere :
npm i alfredjs -g
or
Install locally to your project and use from npm scripts :
npm i alfredjs
Add an npm script in your package.json
"scripts":{"alfredjs":"alfredjs"}
Run globally installed alfredjs in project folder :
$ cd my-project
$ alfred
You can configure alfred in 3 ways :
.alfredrc
Run alfred with alfred --config <CONFIG_PATH>
to pass a configuration file path. You can use this if you don't want your alfred configuration in your version control.
Alfred will use .alfredrc
in the root folder, which command is executed in, by default. If there is no .alfredrc
file then alfred falls back to it's default configuration options. You can show default alfred configuration by running show:config
after running alfred.
You can also create a premade .alfredrc
by running init
command in alfred.
Default alfred config is : (beware this might not be up to date with source code lib/Utils.js
)
{
dirs: {
component: 'src/javascript/components',
reducer: 'src/javascript/reducers',
action: 'src/javascript/actions',
shared: 'src/javascript/shared',
view: 'src/javascript/views',
root: '.alfred',
}
}
Commands:
help [command...] Provides help for a given command.
exit Exits application.
new:component <name> [reduxEnabled] Creates a new component
new:components <names...> Creates multiple components at once without redux
new:view <name> [reduxEnabled] Creates a new view
new:action <actionCreatorName> <name> Creates a new action creator
create:routes Creates a simple react-router-dom entry in root folder
create:store Creates a redux store in root folder
show:config Shows current config options
init Creates an .alfredrc file with all the defaults
$ALFRED_VERBOSE
: If environment variables is set, alfred stouts processes as they happen
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
@kucukkanat
FAQs
Alfred renders your template and creates a new file with given parameters to speed up your frontend development
The npm package alfredjs receives a total of 0 weekly downloads. As such, alfredjs popularity was classified as not popular.
We found that alfredjs 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.