Skip to content

Commit 2587728

Browse files
committed
build: 3.0.0
1 parent f457708 commit 2587728

File tree

4 files changed

+219
-1553
lines changed

4 files changed

+219
-1553
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ node_modules
77
LICENSE
88
*.png
99
*.txt
10+
*.csv
1011
TODO
1112
.DS_Store

README.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -83,32 +83,35 @@ Add in [plan.json]:
8383

8484
#### Options
8585

86-
| Option | Description |
87-
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
88-
| delimiter | The delimiter that will separate columns. Default: ',' |
89-
| quote | The character to use to quote fields that contain a delimiter. Default: '"' |
90-
| escape | The character to used tp escape quotes inside of a quoted field. Default: '"' |
91-
| headers | If set to true the first row will be treated as the headers. If you want to manually specify the headers set to a string[]. Default: true |
92-
| renameHeaders | If you want the first line of the file to be removed and replaced by the one provided in the headers option. Default: false |
93-
| ignoreEmpty | Set to true to ignore empty rows. Default: false |
94-
| comment | If your CSV contains comments you can use this option to ignore lines that begin with the specified character. Default: null |
95-
| discardUnmappedColumns | If you want to discard columns that do not map to a header. Default: false |
96-
| strictColumnHandling | If you want to consider empty lines/lines with too few fields as invalid and emit a data-invalid event. Default: false |
97-
| trim | Set to true to trim all white space from columns. Default: false |
98-
| rtrim | Set to true to right trim all columns. Default: false |
99-
| ltrim | Set to true to left trim all columns. Default: false |
100-
| encoding | Passed to StringDecoder when decoding incoming buffers. Change if incoming content is not 'utf8' encoded. Default: 'utf8' |
101-
| maxRows | If number is > 0 then only the specified number of rows will be parsed. Default: 0 |
102-
| skipRows | If number is > 0 then the specified number of parsed rows will be skipped. Default: 0 |
103-
| skipLines | If number is > 0 the specified number of lines will be skipped. Default: 0 |
86+
| Option | Description |
87+
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
88+
| delimiter | The delimiter that will separate columns. Default: ',' |
89+
| quote | The character to use to quote fields that contain a delimiter. Default: '"' |
90+
| escape | The character to used tp escape quotes inside of a quoted field. Default: '"' |
91+
| headers | If set to true the first row will be treated as the headers. If you want to manually specify the headers set to a string[]. Default: true |
92+
| renameHeaders | If you want the first line of the file to be removed and replaced by the one provided in the headers option. Default: false |
93+
| ignoreEmpty | Set to true to ignore empty rows. Default: false |
94+
| comment | If your CSV contains comments you can use this option to ignore lines that begin with the specified character. Default: null |
95+
| discardUnmappedColumns | If you want to discard columns that do not map to a header. Default: false |
96+
| strictColumnHandling | If you want to consider empty lines/lines with too few fields as invalid and emit a data-invalid event. Default: false |
97+
| trim | Set to true to trim all white space from columns. Default: false |
98+
| rtrim | Set to true to right trim all columns. Default: false |
99+
| ltrim | Set to true to left trim all columns. Default: false |
100+
| encoding | Passed to StringDecoder when decoding incoming buffers. Change if incoming content is not 'utf8' encoded. Default: 'utf8' |
101+
| maxRows | If number is > 0 then only the specified number of rows will be parsed. Default: 0 |
102+
| skipRows | If number is > 0 then the specified number of parsed rows will be skipped. Default: 0 |
103+
| skipLines | If number is > 0 the specified number of lines will be skipped. Default: 0 |
104104

105105
### Output (Process values):
106106

107107
- `PROCESS_EXEC_MSG_OUTPUT`: Output message.
108108
- `PROCESS_EXEC_ERR_OUTPUT`: Error output message.
109+
109110
#### Data output
111+
110112
- `PROCESS_EXEC_DATA_OUTPUT`: JSON output data.
111113
- `PROCESS_EXEC_DB_ROWCOUNT`: Count rows.
114+
112115
### More information:
113116

114117
This executor uses the fast-csv module, for more information consult the website of the [csv2json].

0 commit comments

Comments
 (0)