berquerant/csv2json
Convert csv data from stdin into json.
Convert csv data from stdin into json.
$ cat account.csv
id,name,department
1,account1,HR
2,account2,Dev
4,account4,HR
3,account3,PR
$ csv2json -i < account.csv
{"id":1,"name":"account1","department":"HR"}
{"id":2,"name":"account2","department":"Dev"}
{"id":4,"name":"account4","department":"HR"}
{"id":3,"name":"account3","department":"PR"}
$ csv2json < account.csv
["id","name","department"]
[1,"account1","HR"]
[2,"account2","Dev"]
[4,"account4","HR"]
[3,"account3","PR"]
Depends on:
The format of a row of requirements.txt is:
LOCATION VERSION ENTRANCE
LOCATION
is a part of the repo url with schema stripped.VERSION
is a tag or a commit hash.
ENTRANCE
is a target zig file to @import
, relative to the root of the repo.