Socket
Socket
Sign inDemoInstall

cloc

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloc - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

other/screenshot.png

2

package.json
{
"name": "cloc",
"version": "1.0.1",
"version": "1.0.2",
"description": "An npm module for distributing cloc by Al Danial http://cloc.sourceforge.net/",

@@ -5,0 +5,0 @@ "main": "lib/cloc",

# cloc
This is just an npm distribution of the amazing [cloc](http://cloc.sourceforge.net/) by Al Danial.
![Screenshot](other/screenshot.png)
This is just an npm distribution of the amazing [cloc](http://cloc.sourceforge.net/) by [Al Danial](pontifespresso).
[I](https://twitter.com/kentcdodds) created this package because I think `cloc` is awesome, but didn't want to download
the file and commit it to my project.
# Installation and Requirements

@@ -17,4 +22,25 @@

## Locally in a project
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:
1. Install it as one of your `devDependencies` with `$ npm i -D cloc`
2. Add this to your `package.json`:
```javascript
{
// your other config stuff
"scripts": {
"count": "cloc app/" // <-- other options would go here as well...
}
// more config stuff
}
```
3. Whenever you want to count your lines of code, simply enter: `$ npm run count`
# LICENSE
This package is MIT licensed. However the `cloc` library itself is licensed with GPL 2.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc