
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
cloc-csv2json
Advanced tools
A simple package to convert CLOC CSV output into JSON.
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
This project is MIT licensed.
FAQs
Parses the CSV generated by cloc (by file) into a JSON array
The npm package cloc-csv2json receives a total of 0 weekly downloads. As such, cloc-csv2json popularity was classified as not popular.
We found that cloc-csv2json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.