Flatten data for Guatecompras public OCDS contracts.
git clone
npm install
(stream of JSON lines) | node guatecompras-transformer/index.js -o [output] | (stream of JSON lines)
--output -o ocds|csv
When using ocds or no value (default) the script produces simplified objects in OCDS style, where each object corresponds to one award. When using csv the object produced is a much simpler, CSV style flat object with minimal data.
Works with data from the Guatemalan OCDS API. Preprocess by extracting all compiledReleases into JSON lines, one object per line, using a tool such as jq.