Installation and Requirements
cloc is written in perl and the binary that this package exposes is the
perl script. You must have perl installed on your machine for this binary to
Node & npm
This is distributed as an
npm package (some say that stands for "Node Package
Manager"). So you must have Node.js and npm installed.
Here are quick instructions on how to get those: http://blog.nodeknockout.com/post/65463770933/how-to-install-node-js-and-npm
Congratulations, you've opened your life to a whole new world of awesome tooling and other cool things :-)
The recommended usage is temporary installation using
npx cloc [options]
However, you can also install it globally or locally to a project. Learn more
In your terminal, simply type
npx cloc to get output of the options available.
See the official cloc website for documentation
on how to use
Here's the output when you run
To update the
cloc version, run:
npm run update -- VERSION
npm run update -- 1.88
This package is and the
cloc cli itself is licensed with GPL 2.