You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cloc-csv2json

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloc-csv2json

Parses the CSV generated by cloc (by file) into a JSON array

0.1.2
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

cloc

FAQs

Package last updated on 25 Jul 2014

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.