CSV State Parser
Usage
CLI
Usage: csv-parser-state.js [options]
Package to parse states from CSV to JSON
Options:
--help, -h Show help [boolean]
--version, -v Show version number [boolean]
--projectKey, -p API project key [string]
--apiUrl The host URL of the HTTP API service
[string] [default: "https://api.commercetools.com"]
--authUrl The host URL of the OAuth API service
[string] [default: "https://auth.commercetools.com"]
--accessToken CTP client access token
Required scopes: ['view_orders'] [string]
--input, -i Path to CSV file. [default: "stdin"]
--output, -o Path to output JSON file
[string] [default: "stdout"]
--delimiter, -d Used CSV delimiter. [default: ","]
--multiValueDelimiter, -m Used CSV delimiter in multiValue fields.
[default: ";"]
--continueOnProblems, -c Flag if parsing should continue if module
encounters an error. [boolean] [default: false]
--logLevel Logging level: error, warn, info or debug
[string] [default: "info"]
--prettyLogs Pretty print logs to the terminal [boolean]
--logFile Path to file where logs should be saved
[string] [default: "csv-parser-state.log"]Info on flags
JS
CSV Notes
Examples
Last updated