n8n-nodes-parser-bigboss 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,256 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParserBigBoss = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const JSON5 = require("json5");
6
+ const yaml = require("js-yaml");
7
+ const xml2js_1 = require("xml2js");
8
+ const MD_CODE_BLOCK_REGEX = /```(?:json|yaml|xml|)\s*([\s\S]*?)```/gi;
9
+ const JSON_REGEX = /{(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*}/g;
10
+ const XML_REGEX = /<([a-zA-Z0-9_\-]+)[^>]*>[\s\S]*?<\/\1>/g;
11
+ class ParserBigBoss {
12
+ constructor() {
13
+ this.description = {
14
+ displayName: 'Parser BigBoss',
15
+ name: 'parserBigBoss',
16
+ icon: 'fa:brain',
17
+ group: ['transform'],
18
+ version: 1,
19
+ description: 'Auto-detect and parse structured data (JSON, YAML, XML, Lists) from any AI text output.',
20
+ defaults: {
21
+ name: 'Parser BigBoss',
22
+ },
23
+ inputs: ['main'],
24
+ outputs: ['main'],
25
+ properties: [
26
+ {
27
+ displayName: 'Input Text',
28
+ name: 'inputData',
29
+ type: 'string',
30
+ default: '',
31
+ required: true,
32
+ description: 'The raw text to parse (e.g. from an AI model output).',
33
+ placeholder: 'e.g. {{ $json.content }}',
34
+ },
35
+ {
36
+ displayName: 'Parsing Strategy',
37
+ name: 'strategy',
38
+ type: 'options',
39
+ options: [
40
+ {
41
+ name: 'Auto-Detect (Smart)',
42
+ value: 'auto',
43
+ description: 'Attempts to find and parse JSON, YAML, or XML automatically. Picks the most likely valid structure.',
44
+ },
45
+ {
46
+ name: 'Extract JSON',
47
+ value: 'json',
48
+ description: 'Looks specifically for JSON objects or arrays (including inside markdown blocks).',
49
+ },
50
+ {
51
+ name: 'Extract XML',
52
+ value: 'xml',
53
+ description: 'Looks for XML tags.',
54
+ },
55
+ {
56
+ name: 'Extract YAML',
57
+ value: 'yaml',
58
+ description: 'Parses as YAML.',
59
+ },
60
+ ],
61
+ default: 'auto',
62
+ },
63
+ {
64
+ displayName: 'Allow Loose Parsing',
65
+ name: 'loose',
66
+ type: 'boolean',
67
+ default: true,
68
+ description: 'If true, uses JSON5 for lenient JSON parsing (comments, unquoted keys, trailing commas allowed).',
69
+ displayOptions: {
70
+ show: {
71
+ strategy: ['auto', 'json'],
72
+ },
73
+ },
74
+ },
75
+ {
76
+ displayName: 'Output Property',
77
+ name: 'outputProperty',
78
+ type: 'string',
79
+ default: 'parsed',
80
+ description: 'Name of the property to write the parsed object to. Leave empty to spread properties to root.',
81
+ },
82
+ {
83
+ displayName: 'On Error',
84
+ name: 'onError',
85
+ type: 'options',
86
+ options: [
87
+ {
88
+ name: 'Return null',
89
+ value: 'returnNull',
90
+ },
91
+ {
92
+ name: 'Return Original Text',
93
+ value: 'returnOriginal',
94
+ },
95
+ {
96
+ name: 'Error Node',
97
+ value: 'error',
98
+ },
99
+ ],
100
+ default: 'returnNull',
101
+ description: 'What to do if parsing fails.',
102
+ },
103
+ ],
104
+ };
105
+ }
106
+ async execute() {
107
+ const items = this.getInputData();
108
+ const returnData = [];
109
+ for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
110
+ let inputData = this.getNodeParameter('inputData', itemIndex);
111
+ const strategy = this.getNodeParameter('strategy', itemIndex);
112
+ const loose = this.getNodeParameter('loose', itemIndex, true);
113
+ const outputProperty = this.getNodeParameter('outputProperty', itemIndex, '');
114
+ const onError = this.getNodeParameter('onError', itemIndex);
115
+ if (typeof inputData !== 'string') {
116
+ if (typeof inputData === 'object') {
117
+ inputData = JSON.stringify(inputData);
118
+ }
119
+ else {
120
+ inputData = String(inputData);
121
+ }
122
+ }
123
+ let result = null;
124
+ let success = false;
125
+ try {
126
+ if (strategy === 'auto' || strategy === 'json') {
127
+ const mdMatch = inputData.match(MD_CODE_BLOCK_REGEX);
128
+ let candidates = [];
129
+ if (mdMatch) {
130
+ candidates = mdMatch.map(block => {
131
+ return block.replace(/```(?:json|yaml|xml|)?/gi, '').replace(/```/g, '').trim();
132
+ });
133
+ }
134
+ if (candidates.length === 0) {
135
+ let bracketMatch = inputData.match(JSON_REGEX);
136
+ if (bracketMatch) {
137
+ candidates = bracketMatch;
138
+ }
139
+ else {
140
+ candidates = [inputData];
141
+ }
142
+ }
143
+ for (const candidate of candidates) {
144
+ try {
145
+ if (loose) {
146
+ result = JSON5.parse(candidate);
147
+ }
148
+ else {
149
+ result = JSON.parse(candidate);
150
+ }
151
+ if (result && typeof result === 'object') {
152
+ success = true;
153
+ break;
154
+ }
155
+ }
156
+ catch (e) {
157
+ }
158
+ }
159
+ }
160
+ if ((strategy === 'auto' && !success) || strategy === 'xml') {
161
+ const xmlMatch = inputData.match(XML_REGEX);
162
+ if (xmlMatch) {
163
+ for (const candidate of xmlMatch) {
164
+ try {
165
+ const xmlRes = await (0, xml2js_1.parseStringPromise)(candidate, { explicitArray: false });
166
+ if (xmlRes) {
167
+ result = xmlRes;
168
+ success = true;
169
+ break;
170
+ }
171
+ }
172
+ catch (e) { }
173
+ }
174
+ }
175
+ if (!success && strategy === 'xml') {
176
+ try {
177
+ const xmlRes = await (0, xml2js_1.parseStringPromise)(inputData, { explicitArray: false });
178
+ if (xmlRes) {
179
+ result = xmlRes;
180
+ success = true;
181
+ }
182
+ }
183
+ catch (e) { }
184
+ }
185
+ }
186
+ if ((strategy === 'auto' && !success) || strategy === 'yaml') {
187
+ const mdMatch = inputData.match(MD_CODE_BLOCK_REGEX);
188
+ let candidates = [];
189
+ if (mdMatch) {
190
+ candidates = mdMatch.map(block => {
191
+ return block.replace(/```(?:json|yaml|xml|)?/gi, '').replace(/```/g, '').trim();
192
+ });
193
+ }
194
+ else if (strategy === 'yaml') {
195
+ candidates = [inputData];
196
+ }
197
+ for (const candidate of candidates) {
198
+ try {
199
+ const yamlRes = yaml.load(candidate);
200
+ if (yamlRes && typeof yamlRes === 'object') {
201
+ result = yamlRes;
202
+ success = true;
203
+ break;
204
+ }
205
+ }
206
+ catch (e) { }
207
+ }
208
+ }
209
+ if (!success) {
210
+ throw new Error('Could not parse valid structure from input.');
211
+ }
212
+ const newItem = {
213
+ json: items[itemIndex].json,
214
+ binary: items[itemIndex].binary,
215
+ pairedItem: {
216
+ item: itemIndex,
217
+ },
218
+ };
219
+ if (outputProperty) {
220
+ newItem.json[outputProperty] = result;
221
+ }
222
+ else {
223
+ if (typeof result === 'object' && !Array.isArray(result) && result !== null) {
224
+ Object.assign(newItem.json, result);
225
+ }
226
+ else {
227
+ newItem.json['parsed'] = result;
228
+ }
229
+ }
230
+ returnData.push(newItem);
231
+ }
232
+ catch (error) {
233
+ if (onError === 'error') {
234
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex });
235
+ }
236
+ else if (onError === 'returnOriginal') {
237
+ const newItem = { ...items[itemIndex] };
238
+ if (outputProperty) {
239
+ newItem.json[outputProperty] = inputData;
240
+ }
241
+ returnData.push(newItem);
242
+ }
243
+ else {
244
+ const newItem = { ...items[itemIndex] };
245
+ if (outputProperty) {
246
+ newItem.json[outputProperty] = null;
247
+ }
248
+ returnData.push(newItem);
249
+ }
250
+ }
251
+ }
252
+ return [returnData];
253
+ }
254
+ }
255
+ exports.ParserBigBoss = ParserBigBoss;
256
+ //# sourceMappingURL=ParserBigBoss.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParserBigBoss.node.js","sourceRoot":"","sources":["../../nodes/ParserBigBoss/ParserBigBoss.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AACtB,+BAA+B;AAC/B,gCAAgC;AAChC,mCAA4C;AAO5C,MAAM,mBAAmB,GAAG,yCAAyC,CAAC;AACtE,MAAM,UAAU,GAAG,qCAAqC,CAAC;AACzD,MAAM,SAAS,GAAG,yCAAyC,CAAC;AAE5D,MAAa,aAAa;IAA1B;QACI,gBAAW,GAAyB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;YACL,CAAC;QACL,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;CACJ;AA3RD,sCA2RC"}
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "n8n-nodes-parser-bigboss",
3
+ "version": "1.0.0",
4
+ "description": "Smart parser node for AI outputs - extracts and structures JSON/YAML/XML/Lists dynamically.",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "n8n",
8
+ "parser",
9
+ "ai",
10
+ "json",
11
+ "yaml",
12
+ "xml"
13
+ ],
14
+ "license": "MIT",
15
+ "author": "isemo007",
16
+ "main": "index.js",
17
+ "scripts": {
18
+ "build": "tsc && gulp build:icons",
19
+ "dev": "tsc --watch",
20
+ "lint": "tslint -p tsconfig.json -c tslint.json",
21
+ "format": "prettier nodes --write"
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "n8n": {
27
+ "n8nNodesApiVersion": 1,
28
+ "nodes": [
29
+ "dist/ParserBigBoss.node.js"
30
+ ]
31
+ },
32
+ "peerDependencies": {
33
+ "n8n-workflow": "*"
34
+ },
35
+ "dependencies": {
36
+ "n8n-core": "^1.0.0",
37
+ "n8n-workflow": "^1.0.0",
38
+ "json5": "^2.2.3",
39
+ "js-yaml": "^4.1.0",
40
+ "xml2js": "^0.6.2",
41
+ "lodash": "^4.17.21"
42
+ },
43
+ "devDependencies": {
44
+ "@types/node": "^18.16.0",
45
+ "@types/json5": "^0.0.30",
46
+ "@types/js-yaml": "^4.0.5",
47
+ "@types/xml2js": "^0.4.11",
48
+ "@types/lodash": "^4.14.195",
49
+ "gulp": "^4.0.2",
50
+ "typescript": "^5.0.4",
51
+ "prettier": "^2.8.8",
52
+ "tslint": "^6.1.3"
53
+ }
54
+ }