Comparing version 1.0.1 to 1.0.2
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
556064
15
46