Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
This is just an npm distribution of the amazing cloc by Al Danial.
I created this package because I think cloc
is awesome, but didn't want to download
the file and commit it to my project.
cloc
is written in perl and the binary that this package exposes is the cloc
perl script. You must have perl installed on your machine for this binary to work.
Install this tool via npm
: $ npm install -g cloc
In your terminal, simply type cloc
to get output of the options available.
See the official cloc website for documentation on how to use cloc
.
I use this in my project to keep track of my lines of code as the project grows (mostly for fun). Here's what I do:
devDependencies
with $ npm i -D cloc
package.json
:{
// your other config stuff
"scripts": {
"count": "cloc app/" // <-- other options would go here as well...
}
// more config stuff
}
$ npm run count
This package is MIT licensed. However the cloc
library itself is licensed with GPL 2.
FAQs
An npm module for distributing cloc by Al Danial https://github.com/AlDanial/cloc
The npm package cloc receives a total of 18,175 weekly downloads. As such, cloc popularity was classified as popular.
We found that cloc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.