-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
238 lines (238 loc) · 8.83 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
{
"name": "xml2json",
"displayName": "XML to JSON",
"description": "Convert XML from clipboard or current document/selection to JSON",
"version": "1.2.5",
"publisher": "buianhthang",
"engines": {
"vscode": "^1.17.0"
},
"categories": [
"Other"
],
"icon": "images/xml2json.png",
"galleryBanner": {
"color": "#5076f3",
"theme": "dark"
},
"activationEvents": [
"*"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "xml2json.document",
"title": "XML to JSON: Convert from selection or document"
},
{
"command": "xml2json.clipboard",
"title": "XML to JSON: Convert from clipboard"
}
],
"menus": {
"editor/context": [
{
"command": "xml2json.document"
},
{
"command": "xml2json.clipboard"
}
]
},
"configuration": {
"properties": {
"xml2json.defaultSettings": {
"type": "string",
"default": "xml2js",
"enum": [
"xml2js",
"xmlbuilder",
"custom"
],
"description": "Choose your default settings or config your custom."
},
"xml2json.options": {
"type": "object",
"properties": {
"attrkey": {
"type": "string",
"default": "$",
"description": "Prefix that is used to access the attributes. Version 0.1 default was @.",
"scope": "window"
},
"charkey": {
"type": "string",
"default": "_",
"description": "Prefix that is used to access the character content. Version 0.1 default was #.",
"scope": "window"
},
"explicitCharkey": {
"type": "boolean",
"default": false,
"description": "",
"scope": "window"
},
"trim": {
"type": "boolean",
"default": false,
"description": "Trim the whitespace at the beginning and end of text nodes.",
"scope": "window"
},
"normalizeTags": {
"type": "boolean",
"default": false,
"description": "Normalize all tag names to lowercase.",
"scope": "window"
},
"normalize": {
"type": "boolean",
"default": false,
"description": "Trim whitespaces inside text nodes.",
"scope": "window"
},
"explicitRoot": {
"type": "boolean",
"default": true,
"description": "Set this if you want to get the root node in the resulting object.",
"scope": "window"
},
"emptyTag": {
"type": "string",
"default": "",
"description": "what will the value of empty nodes be.",
"scope": "window"
},
"explicitArray": {
"type": "boolean",
"default": true,
"description": "Always put child nodes in an array if true; otherwise an array is created only if there is more than one.",
"scope": "window"
},
"ignoreAttrs": {
"type": "boolean",
"default": false,
"description": "Ignore all XML attributes and only create text nodes.",
"scope": "window"
},
"mergeAttrs": {
"type": "boolean",
"default": false,
"description": "Merge attributes and child elements as properties of the parent, instead of keying attributes off a child attribute object. This option is ignored if ignoreAttrs is false.",
"scope": "window"
},
"validator": {
"type": "string",
"default": null,
"description": "You can specify a callable that validates the resulting structure somehow, however you want. See unit tests for an example.",
"scope": "window"
},
"xmlns": {
"type": "boolean",
"default": false,
"description": "Give each element a field usually called '$ns' (the first character is the same as attrkey) that contains its local name and namespace URI.",
"scope": "window"
},
"explicitChildren": {
"type": "boolean",
"default": false,
"description": "Put child elements to separate property. Doesn't work with mergeAttrs = true. If element has no children then \"children\" won't be created. Added in 0.2.5.",
"scope": "window"
},
"childkey": {
"type": "string",
"default": "$$",
"description": "Prefix that is used to access child elements if explicitChildren is set to true. Added in 0.2.5.",
"scope": "window"
},
"preserveChildrenOrder": {
"type": "boolean",
"default": false,
"description": "Modifies the behavior of explicitChildren so that the value of the \"children\" property becomes an ordered array. When this is true, every node will also get a #name field whose value will correspond to the XML nodeName, so that you may iterate the \"children\" array and still be able to determine node names. The named (and potentially unordered) properties are also retained in this configuration at the same level as the ordered \"children\" array. Added in 0.4.9.",
"scope": "window"
},
"charsAsChildren": {
"type": "boolean",
"default": false,
"description": "Determines whether chars should be considered children if explicitChildren is on. Added in 0.2.5.",
"scope": "window"
},
"includeWhiteChars": {
"type": "boolean",
"default": false,
"description": "Determines whether whitespace-only text nodes should be included. Added in 0.4.17.",
"scope": "window"
},
"async": {
"type": "boolean",
"default": false,
"description": "Should the callbacks be async? This might be an incompatible change if your code depends on sync execution of callbacks. Future versions of xml2js might change this default, so the recommendation is to not depend on sync execution anyway. Added in 0.2.6.",
"scope": "window"
},
"strict": {
"type": "boolean",
"default": true,
"description": "Set sax-js to strict or non-strict parsing mode. Defaults to true which is highly recommended, since parsing HTML which is not well-formed XML might yield just about anything. Added in 0.2.7.",
"scope": "window"
},
"attrNameProcessors": {
"type": "string",
"default": null,
"description": "Allows the addition of attribute name processing functions. Accepts an Array of functions. Added in 0.4.14.",
"scope": "window"
},
"attrValueProcessors": {
"type": "string",
"default": null,
"description": "Allows the addition of attribute value processing functions. Accepts an Array of functions. Added in 0.4.1.",
"scope": "window"
},
"tagNameProcessors": {
"type": "string",
"default": null,
"description": "Allows the addition of tag name processing functions. Accepts an Array of functions. Added in 0.4.1.",
"scope": "window"
},
"valueProcessors": {
"type": "string",
"default": null,
"description": "Allows the addition of element value processing functions. Accepts an Array of functions. Added in 0.4.6.",
"scope": "window"
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/node": "13.11.0",
"@types/vscode": "1.17.0",
"typescript": "3.8.3",
"vscode-test": "1.3.0"
},
"dependencies": {
"clipboardy": "3.0.0",
"xml2js": "0.5.0"
},
"repository": {
"type": "git",
"url": "https://github.com/buianhthang/vscode-xml2json"
},
"keywords": [
"vscode",
"xml2json",
"xml2js",
"xmlbuilder"
],
"author": "Anh Thang Bui <[email protected]> (https://anhthang.org)",
"license": "MIT",
"bugs": {
"url": "https://github.com/buianhthang/vscode-xml2json/issues"
},
"homepage": "https://github.com/buianhthang/vscode-xml2json#readme"
}