A simple tool to extract OSS information (nodejs, python) to csv file
-
First, copy
package.json
orrequirements.txt
(or any file you want, but keep the file format) into/oss
folder -
Update
ossPackages
variable insideindex.js
file as followsconst ossPackages = [ { path: "package.json", lang: "node", name: "NodeJSOSS" }, { path: "requirements.txt", lang: "python", name: "PythonOSS" }, ];
-
Lastly, run the commit and get the result in
/output
folder$ node .
Nodejs only read the file format of package.json
and Python read requirements.txt
format
Therefore, you can use any file with any names but keep the format