
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.
return cli common varibles
npm install --save ccli
#!/usr/bin/env node
var ccli = require('.')(__dirname)
console.log(ccli.fp);
console.log(ccli.cp);
console.log(ccli.argv);
console.log('(%d,%d)', ccli.argv.x, ccli.argv.y);
ccli.home
ccli.link('node_modules','aaa')
ccli.linkfolder2('node_modules','aaa')
比如
ccli.linkfolder2(ccli.fp + '/' + 'node_modules/', ccli.cp + '/' +'node_modules/')
ccli.linkfolder2(ccli.fp + '/' + 'node_modules/', ccli.cp + '/' +'node_modules/')
可以简写为
ccli.linkfolder('node_modules/','node_modules/')
它会自动提供路径,src是模块所在路径,而dest是当前路径
ccli.copy('index.js',__dirname + '/aaa.js')
拷贝一个目录到另一个目录
ccli.copy_dir_to("a", "b")
列出path下面的所有目录
ccli.walkdir(path, function(dir_path, dir_name){
console.log(dir_path);
console.log(dir_name);
})
https://github.com/i5ting/docto/
FAQs
a cli tools
The npm package ccli receives a total of 25 weekly downloads. As such, ccli popularity was classified as not popular.
We found that ccli 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.