@frogbotai/piece-text-helper 0.5.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 FrogBot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,28 @@
1
+ import { type PieceFactoryConfig } from "frogbot/pieces";
2
+ export declare const textHelperActions: readonly ["concat", "replace", "split", "find", "markdown_to_html", "html_to_markdown", "stripHtml", "slugify", "defaultValue", "json_to_ascii_table", "extract_from_html"];
3
+ export declare const textHelperScopes: readonly [];
4
+ export declare function createTextHelper(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
5
+ /** Concatenate: Concatenate two or more texts */
6
+ concat: import("node_modules/frogbot/dist/types/tool").AnyTool;
7
+ /** Replace: Replaces all instances of any word, character or phrase in text, with another. */
8
+ replace: import("node_modules/frogbot/dist/types/tool").AnyTool;
9
+ /** Split: Split a text by a delimiter */
10
+ split: import("node_modules/frogbot/dist/types/tool").AnyTool;
11
+ /** Find: Find substring (Regex or Text). */
12
+ find: import("node_modules/frogbot/dist/types/tool").AnyTool;
13
+ /** Markdown to HTML: Convert markdown to HTML */
14
+ markdownToHtml: import("node_modules/frogbot/dist/types/tool").AnyTool;
15
+ /** HTML to Markdown: Convert HTML to Markdown */
16
+ htmlToMarkdown: import("node_modules/frogbot/dist/types/tool").AnyTool;
17
+ /** Remove HTML Tags: Removes every HTML tag and returns plain text */
18
+ stripHtml: import("node_modules/frogbot/dist/types/tool").AnyTool;
19
+ /** Slugify: Slugifies strings. */
20
+ slugify: import("node_modules/frogbot/dist/types/tool").AnyTool;
21
+ /** Use Default Value if Input is Empty: Checks your input and returns the default value, if the input is an empty text or list */
22
+ defaultValue: import("node_modules/frogbot/dist/types/tool").AnyTool;
23
+ /** List to Text Table: Convert a list of items to a text table */
24
+ jsonToAsciiTable: import("node_modules/frogbot/dist/types/tool").AnyTool;
25
+ /** Extract from HTML: Extract specific elements or data from an HTML document. */
26
+ extractFromHtml: import("node_modules/frogbot/dist/types/tool").AnyTool;
27
+ };
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,iBAAiB,6KAGpB,CAAC;AACX,eAAO,MAAM,gBAAgB,aAAc,CAAC;AAE5C,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUxD,iDAAiD;;IAEjD,8FAA8F;;IAE9F,yCAAyC;;IAEzC,4CAA4C;;IAE5C,iDAAiD;;IAEjD,iDAAiD;;IAEjD,sEAAsE;;IAEtE,kCAAkC;;IAElC,kIAAkI;;IAElI,kEAAkE;;IAElE,kFAAkF;;EAGrF"}
package/dist/index.js ADDED
@@ -0,0 +1,42 @@
1
+ import * as textHelperModule from '@activepieces/piece-text-helper';
2
+ import { createActivepiecesPiece } from "frogbot/pieces";
3
+ export const textHelperActions = [
4
+ 'concat', 'replace', 'split', 'find', 'markdown_to_html', 'html_to_markdown', 'stripHtml', 'slugify',
5
+ 'defaultValue', 'json_to_ascii_table', 'extract_from_html',
6
+ ];
7
+ export const textHelperScopes = [];
8
+ export function createTextHelper(config) {
9
+ const piece = createActivepiecesPiece({
10
+ module: textHelperModule,
11
+ service: "text_helper",
12
+ credentialType: "none",
13
+ defaultActions: textHelperActions,
14
+ scopes: textHelperScopes,
15
+ config,
16
+ });
17
+ return Object.assign(piece, {
18
+ /** Concatenate: Concatenate two or more texts */
19
+ concat: piece.tool("concat"),
20
+ /** Replace: Replaces all instances of any word, character or phrase in text, with another. */
21
+ replace: piece.tool("replace"),
22
+ /** Split: Split a text by a delimiter */
23
+ split: piece.tool("split"),
24
+ /** Find: Find substring (Regex or Text). */
25
+ find: piece.tool("find"),
26
+ /** Markdown to HTML: Convert markdown to HTML */
27
+ markdownToHtml: piece.tool("markdown_to_html"),
28
+ /** HTML to Markdown: Convert HTML to Markdown */
29
+ htmlToMarkdown: piece.tool("html_to_markdown"),
30
+ /** Remove HTML Tags: Removes every HTML tag and returns plain text */
31
+ stripHtml: piece.tool("stripHtml"),
32
+ /** Slugify: Slugifies strings. */
33
+ slugify: piece.tool("slugify"),
34
+ /** Use Default Value if Input is Empty: Checks your input and returns the default value, if the input is an empty text or list */
35
+ defaultValue: piece.tool("defaultValue"),
36
+ /** List to Text Table: Convert a list of items to a text table */
37
+ jsonToAsciiTable: piece.tool("json_to_ascii_table"),
38
+ /** Extract from HTML: Extract specific elements or data from an HTML document. */
39
+ extractFromHtml: piece.tool("extract_from_html"),
40
+ });
41
+ }
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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,CAAC,IAAI,CAAC,cAAc,CAAC;QACxC,kEAAkE;QAClE,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC;QACnD,kFAAkF;QAClF,eAAe,EAAE,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC;KACjD,CAAC,CAAC;AACL,CAAC"}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@frogbotai/piece-text-helper",
3
+ "version": "0.5.0",
4
+ "description": "Text processing tools for FrogBot.",
5
+ "license": "MIT",
6
+ "author": "Colby Gilbert",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/frogbotai/frogbot.git",
10
+ "directory": "packages/pieces/piece-text-helper"
11
+ },
12
+ "type": "module",
13
+ "main": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "sideEffects": false,
26
+ "dependencies": {
27
+ "@activepieces/piece-text-helper": "0.4.15"
28
+ },
29
+ "peerDependencies": {
30
+ "frogbot": "0.5.0"
31
+ },
32
+ "devDependencies": {
33
+ "typescript": "5.6.2",
34
+ "frogbot": "0.5.0"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "scripts": {
40
+ "build": "tsc -p tsconfig.json",
41
+ "clean": "rm -rf dist",
42
+ "typecheck": "tsc --noEmit"
43
+ }
44
+ }