2.0.4 • Published 8 months ago

@janus-idp/backstage-scaffolder-backend-module-regex-dynamic v2.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

Regex actions for Backstage

This plugin provides Backstage template actions for RegExp.

The following actions are currently supported in this plugin:

Prerequisites

Installation

Run the following command to install the action package in your Backstage project:

yarn workspace backend add @janus-idp/backstage-scaffolder-backend-module-regex

Installing the action on the new backend

Add the following to your packages/backend/src/index.ts file:

const backend = createBackend();

// Add the following line
backend.add(import('@janus-idp/backstage-scaffolder-backend-module-regex'));

backend.start();

Usage

Action : regex:replace

Parameter NameTypeRequiredDescription
regExps[].patternstringYesThe regex pattern to match the value like in String.prototype.replace()
regExps[].flagsstring[]NoThe flags for the regex, possible values are: g, m, i, y, u, s, d
regExps[].replacementstringYesThe replacement value for the regex like in String.prototype.replace()
regExps[].values[].keystringYesThe key to access the regex value
regExps[].values[].valuestringYesThe input value of the regex

Warning

The regExps[].pattern string cannot have a leading or trailing forward slash

The regExps[].values[].key values must all be unique since the key is used for values.<key> to access the return value

Output

NameTypeDescription
values.<key>stringA new string, with one, some, or all matches of the pattern replaced by the specified replacement.
2.0.3

8 months ago

2.0.2

8 months ago

2.0.4

8 months ago

2.0.1

8 months ago

2.0.0

9 months ago

1.8.1

9 months ago

1.7.2

9 months ago

1.8.0

9 months ago

1.7.1

10 months ago

1.7.0

11 months ago

1.6.0

11 months ago

1.5.1

12 months ago

1.5.0

12 months ago

1.4.9

1 year ago

1.4.11

1 year ago

1.4.8

1 year ago

1.4.10

1 year ago

1.4.13

1 year ago

1.4.12

1 year ago

1.4.7

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

2 years ago