Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

An npm module for distributing cloc by Al Danial http://cloc.sourceforge.net/

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23K
decreased by-17.5%
Maintainers
1
Weekly downloads
 
Created
Source

cloc

Screenshot

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.

Installation and Requirements

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

Usage

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.

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:
{
  // your other config stuff
  "scripts": {
    "count": "cloc app/" // <-- other options would go here as well...
  }
  // more config stuff
}
  1. 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.

Keywords

FAQs

Package last updated on 01 Jul 2015

Did you know?

Socket

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.

Install

Related posts

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