-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
246 lines (246 loc) · 8.98 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
{
"name": "json2csv",
"displayName": "JSON to CSV",
"description": "Bidirectional JSON-CSV Converter - transform JSON files into CSV and CSV files into JSON with ease.",
"version": "1.0.0",
"author": {
"name": "Khaer Ansori",
"email": "[email protected]",
"url": "https://khaeransori.com"
},
"publisher": "khaeransori",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/khaeransori/vscode-json2csv.git"
},
"bugs": {
"url": "https://github.com/khaeransori/vscode-json2csv/issues"
},
"homepage": "https://github.com/khaeransori/vscode-json2csv",
"engines": {
"vscode": "^1.27.0"
},
"categories": [
"Data Science",
"Formatters",
"Other"
],
"keywords": [
"json",
"csv",
"convert",
"json2csv",
"csv2json",
"visual studio code",
"developer tools"
],
"icon": "images/icon.png",
"galleryBanner": {
"color": "#007ACC",
"theme": "dark"
},
"activationEvents": [
"onLanguage:json",
"onLanguage:csv"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "json2csv.toCSV",
"title": "Convert JSON to CSV"
},
{
"command": "json2csv.toJSON",
"title": "Convert CSV to JSON"
},
{
"command": "json2csv.toCSV.clipboard",
"title": "Convert JSON to CSV (Clipboard)"
},
{
"command": "json2csv.toJSON.clipboard",
"title": "Convert CSV to JSON (Clipboard)"
}
],
"configuration": {
"type": "object",
"title": "json2csv",
"properties": {
"json2csv.toCSV.arrayIndexesAsKeys": {
"type": "boolean",
"default": false,
"markdownDescription": "Should array indexes be included in the generated keys?\n\n_Note: This provides a more accurate representation of the JSON in the returned CSV, but may be less human readable. See [#207](https://github.com/mrodrig/json-2-csv/issues/207) for more details._"
},
"json2csv.toCSV.checkSchemaDifferences": {
"type": "boolean",
"default": false,
"markdownDescription": "Should all documents have the same schema?\n\n_Note: An error will be thrown if some documents have differing schemas when this is set to `true`._"
},
"json2csv.toCSV.delimiter.field": {
"type": "string",
"default": ",",
"description": "Field Delimiter."
},
"json2csv.toCSV.delimiter.wrap": {
"type": "string",
"default": "\"",
"description": "Wrap values in the delimiter of choice (e.g. wrap values in quotes)."
},
"json2csv.toCSV.delimiter.eol": {
"type": "string",
"default": "\n",
"enum": [
"\n",
"\r",
"\r\n"
],
"enumDescriptions": [
"LF(\\n) Unix, Linux, Mac OS (newer versions)",
"CR(\\r) Classic Mac OS (up to version 9)",
"CRLF(\\r\\n) Windows, DOS (MS-DOS, PC DOS, etc.)"
],
"description": "End of Line Delimiter."
},
"json2csv.toCSV.emptyFieldValue": {
"type": "string",
"default": "",
"markdownDescription": "Value that, if specified, will be substituted in for field values that are `undefined`, `null`, or an empty string."
},
"json2csv.toCSV.excelBOM": {
"type": "boolean",
"default": false,
"description": "Should a unicode character be prepended to allow Excel to open a UTF-8 encoded file with non-ASCII characters present."
},
"json2csv.toCSV.expandNestedObjects": {
"type": "boolean",
"default": true,
"markdownDescription": "Should nested objects be deep-converted to CSV?\n\n_Note: Set this to `false` may result in CSV output that does not map back exactly to the original JSON_"
},
"json2csv.toCSV.expandArrayObjects": {
"type": "boolean",
"default": false,
"description": "Should objects in array values be deep-converted to CSV?\n\n_Note: This may result in CSV output that does not map back exactly to the original JSON. See [#102](https://github.com/mrodrig/json-2-csv/issues/102) for more information._"
},
"json2csv.toCSV.prependHeader": {
"type": "boolean",
"default": true,
"description": "Should the auto-generated header be prepended as the first line in the CSV?"
},
"json2csv.toCSV.sortHeader": {
"type": "boolean",
"default": false,
"description": "Should the header keys be sorted in alphabetical order?"
},
"json2csv.toCSV.trimFieldValues": {
"type": "boolean",
"default": false,
"description": "Should the field values be trimmed?"
},
"json2csv.toCSV.trimHeaderFields": {
"type": "boolean",
"default": false,
"description": "Should the header fields be trimmed?"
},
"json2csv.toCSV.useDateIso8601Format": {
"type": "boolean",
"default": false,
"markdownDescription": "Should date values be converted to an ISO8601 date string?\n\n_Note: If selected, values will be converted using `toISOString()` rather than `toString()` or `toLocaleString()` depending on the other options provided._"
},
"json2csv.toCSV.useLocaleFormat": {
"type": "boolean",
"default": false,
"markdownDescription": "Should date values be converted to a locale-specific string?\n\n_Note: If selected, values will be converted using `toLocaleString()` rather than `toString()`_"
},
"json2csv.toCSV.wrapBooleans": {
"type": "boolean",
"default": false,
"description": "Should boolean values be wrapped in wrap delimiters to prevent Excel from converting them to Excel's TRUE/FALSE Boolean values."
},
"json2csv.toCSV.preventCsvInjection": {
"type": "boolean",
"default": false,
"description": "Should CSV injection be prevented by left trimming these characters: Equals (=), Plus (+), Minus (-), At (@), Tab (0x09), Carriage return (0x0D)."
},
"json2csv.toJSON.delimiter.field": {
"type": "string",
"default": ",",
"description": "Field Delimiter."
},
"json2csv.toJSON.delimiter.wrap": {
"type": "string",
"default": "\"",
"description": "Wrap values in the delimiter of choice (e.g. wrap values in quotes)."
},
"json2csv.toJSON.delimiter.eol": {
"type": "string",
"default": "\n",
"enum": [
"\n",
"\r",
"\r\n"
],
"enumDescriptions": [
"LF(\\n) Unix, Linux, Mac OS (newer versions)",
"CR(\\r) Classic Mac OS (up to version 9)",
"CRLF(\\r\\n) Windows, DOS (MS-DOS, PC DOS, etc.)"
],
"description": "End of Line Delimiter."
},
"json2csv.toJSON.excelBOM": {
"type": "boolean",
"default": false,
"description": "Should a unicode character be prepended to allow Excel to open a UTF-8 encoded file with non-ASCII characters present."
},
"json2csv.toJSON.trimHeaderFields": {
"type": "boolean",
"default": false,
"description": "Should the header fields be trimmed?"
},
"json2csv.toJSON.trimFieldValues": {
"type": "boolean",
"default": false,
"description": "Should the field values be trimmed?"
},
"json2csv.toJSON.parseStringLiteralNull": {
"type": "boolean",
"default": false,
"description": "Should the string literal 'null' be parsed as a null value?\n\n_Note: case-insensitive comparison is used._"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.8",
"@types/node": "20.x",
"@types/sinon": "^17.0.3",
"@types/vscode": "^1.27.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"esbuild": "^0.24.0",
"eslint": "^9.11.1",
"sinon": "^19.0.2",
"typescript": "^5.6.2"
},
"dependencies": {
"json-2-csv": "^5.5.6",
"lossless-json": "^4.0.2"
}
}