cloc-csv2json

0.1.2 • Public • Published

cloc2json

A simple package to convert CLOC CSV output into JSON.

Usage

If you want the lines of code in a given code base, you can use the handy cloc tool that is widely available.

It generates an overview of the programming languages, files and the number of lines of code in each file (or the whole project).

To be able to use this output programmatically, you can use cloc2json to turn it into JSON for further processing or digestion:

  $ npm install -g cloc2json
  $ cloc --by-file --report-file output.cloc --csv path/to/code
  $ cloc2json output.cloc > output.json

License

This project is MIT licensed.

/cloc-csv2json/

    Package Sidebar

    Install

    npm i cloc-csv2json

    Weekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • avgp