2.2.1 • Published 1 year ago

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

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year 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.2.1

1 year ago

2.2.0

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.4

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.2

1 year ago

1.6.0

1 year ago

1.7.1

1 year ago

1.7.0

1 year ago

1.5.1

1 year ago

1.5.0

1 year 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

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.10

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.2.3

2 years ago

1.0.5

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

3 years ago