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.
A cli tool to create cli tools FASTER 🚀
npm i cli-ator
const cli = require('cli-ator')
const insta = cli({
printer: console.log, // default
log: 'info',
helpPath: 'man/',
help: 'README.md',
helpArg: 'help',
autoloadPath: 'commands/',
commands: [
{
command: 'demo',
commandPath: 'command/',
help: 'README.md',
handler: (args, logger) => {
logger.info('My output')
return 42
},
inputArguments: { /* config */ }
}
]
})
insta.on('start', (command, parsedArgs) => {
// emitted just before the command
})
insta.on('end', (command, result) => {
// emitted if the command complete successfully. The result contains the returned value of the handler
})
insta.on('error', (error, command) => {
// emitted when the command handler throws an error or reject a promise
})
insta.on('not-found', (args) => {
// emitted when the command args don't match any command
})
// exectute the command based on the arguments
insta.execute(process.argv.splice(2))
FAQs
A cli tool to build cli tools FASTER
The npm package cli-ator receives a total of 0 weekly downloads. As such, cli-ator popularity was classified as not popular.
We found that cli-ator 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.