@pulumi/str
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

pulumi-str

Cross language string manipulation functions

Note: This provider is in public beta.

Provided functions

Function Description
str:index:replace Replace occurrences of a substring with another substring.
str:index:trimSuffix Trim a suffix from a string.
str:index:trimPrefix Trim a prefix from a string.
str:regexp:split Split a string on a regex.
str:regexp:replace A regex based replace on a string.

If you think we are missing a string manipulation function, please open an issue.

Motivation

The primary consumer of these functions will be Pulumi YAML. Secondary consumers will be code that is generated by pulumi convert from Pulumi YAML. This allows generated code to have the exact same regular expression semantics as Pulumi YAML.

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i @pulumi/str

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

42.5 kB

Total Files

34

Last publish

Collaborators

  • joeduffy
  • pulumi-bot