
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
### When i can use it? If you need a simple cli application, that execute your small js files as **one** long **command** with params.
If you need a simple cli application, that execute your small js files as one long command with params.
If before building application you want:
Example project structure:
-appRootPath
- YOUR PROJECT
- package.json
- __clicom__ // Scripts folder
- fetchdata.js // Your example script
- cc.js // Entrypoint
// Import some dependencies
const {join} = require('path')
const {writeFile} = require('fs/promises')
const {appRootPath} = require('./cfg')
// Main code
const mainThread = async (flag) => {
// Parse argument from flag
const url = flag.replace(/^prefetch=/g, '')
// Get data from web
const data = await fetch(url)
.then(res => {
return res.toJson()
})
// And write last information in file
await writeFile(
join(appRootPath, '/', 'lastdata'),
data
)
}
// Export this plugin
module.exports = {
// Function, that return boolean value (need execute 'executor' or not for flag in parametr)
isMatch: (flag) => /^prefetch=/g.test(flag),
executor: mainThread
}
const cc = require('clicom')
const myPlugins = [
// Plugin from example above
require('./__clicom__/fetchdata.js')
]
// Execute plugins with default plugings
cc.default(
Object.assign( cc.DefaultPlugins, myPlugins)
)
"scripts": {
// (or cc.js) (built-in plugin) (start project)
"run": "node cc prefetch=google.com flush && node ."
}
Flag: 'flush'
Args: no
Description:
Just flush console
Flag: 'wait' or 'w'
Args: [1 - delay in ms]
Description:
Some pause with passed delay
Flag: 'text-logo'
Args: [1 - Words with not-space delimiter (^ char)]
Example: text-logo=Hello^world
Description:
Output some data in console with pretty char border
FAQs
### When i can use it? If you need a simple cli application, that execute your small js files as **one** long **command** with params.
We found that clicom 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.