@oslo-flanders/stakeholders-converter
v0.0.19-alpha.0
Published
Converts an OSLO stakeholders csv file to a different format
Downloads
649
Readme
OSLO Stakeholders Conversion Service
Transforms an OSLO stakeholders csv file to JSON-LD
Install
npm install @oslo-flanders/stakeholders-converter
Global install
To use the service from the command line anywhere, you can install it globally.
npm install -g @oslo-flanders/stakeholders-converter
API
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
||
| --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 --output path/to/output.jsonld
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