@oslo-flanders/stakeholders-converter
v1.0.3
Published
Converts an OSLO stakeholders csv file to a different format
Readme
OSLO Stakeholders Conversion Service
Transforms an OSLO stakeholders csv file to JSON-LD
Install
npm install @oslo-flanders/stakeholders-converterGlobal install
To use the service from the command line anywhere, you can install it globally.
npm install -g @oslo-flanders/stakeholders-converterAPI
The service is executed from the CLI and expects the following parameters:
| Parameter | Description | Required | Possible values |
| --------- | --------- | ----------- | --------------- |
| --input | The URL or local file path of an OSLO stakeholders csv file | :heavy_check_mark: ||
| --output | Name of the output file | No, default stakeholders.jsonld ||
| --contributorsColumn | Name of the contributors column | No, default MijnKolom ||
| --outputFormat | Which output format to generate the stakeholders file for | No, default application/ld+json |application/ld+json or application/json|
Usage
oslo-stakeholders-converter --input path/to/stakeholders.csv
oslo-stakeholders-converter --input path/to/stakeholders.csv --contributorsColumn contributors
oslo-stakeholders-converter --input path/to/stakeholders.csv --output path/to/output.jsonld --contributorsColumn MijnKolom
oslo-stakeholders-converter --input path/to/stakeholders.csv --output path/to/output.jsonld --outputFormat application/ld+json
oslo-stakeholders-converter --input path/to/stakeholders.csv --output path/to/output.json --outputFormat application/json