@itentialopensource/to-special-case
v0.0.9-2023.1.1
Published
[Deprecated] Pre-built to convert words separated by spaces to alternate cases.
Downloads
5
Readme
Deprecation Notice
This Pre-Built has been deprecated as of 01-15-2024 and will be end of life on 01-15-2025. The capabilities of this Pre-Built have been replaced by the IAP - Data Manipulation
To Special Case
Table of Contents
- Overview
- Installation Prerequisites
- Future Enhancements
- How to Install
- How to Run
- Examples
- Additional Information
Overview
This Pre-Built consists of a JST that takes in words separated by whitespace and converts them to camelCase, PascalCase, kebab-case, and snake_case.
Installation Prerequisites
Users must satisfy the following pre-requisites:
- Itential Automation Platform
^2022.1.x
Future Enhancements
- Converting words with a non-whitespace seperator into alternate cases
How to Install
To install the Pre-Built:
- Verify you are running a supported version of the Itential Automation Platform (IAP) as listed above in the Requirements section in order to install the Pre-Built.
- The Pre-Built can be installed from within App-Admin_Essential. Simply search for the name of your desired Pre-Built and click the install button.
How to Run
In order to run this JST, add the appropriate JST task onto the workflow, then search for "toSpecialCase" and assign values to the incoming variable, incomingString.
Examples
Input
{
"incomingString": "foo bar foobar"
}
Output
{
"toCamelCase": "fooBarFoobar",
"toSnakeCase": "foo_bar_foobar",
"toKebabCase": "foo-bar-foobar",
"toPascalCase": "FooBarFoobar"
}
Additional Information
Please use your Itential Customer Success account if you need support when using this Pre-Built.