Methods
isAbsolutePath(filePath)
Checks if the path is absolute or relative
Parameters:
Name | Type | Description |
---|---|---|
filePath |
- Source:
Returns:
true
if the path is absolute, else false
isContentJson(content)
Checks for JSON
content
Parameters:
Name | Type | Description |
---|---|---|
content |
String type content |
- Source:
Returns:
true
if content is JSON type
read(filePath)
Reads file content
Parameters:
Name | Type | Description |
---|---|---|
filePath |
Comma separated line item in string |
- Source:
Throws:
If not absolute. Please specify absolute path
Returns:
File content in string
refineRelativePaths(content, uniqueKeys)
Refines relative paths with $.
Parameters:
Name | Type | Description |
---|---|---|
content |
local instance of json content |
|
uniqueKeys |
Filtered keys from keywords |
- Source:
Returns:
refined json content with "<$...."
refineRuntimeVals(content, uniqueKeys)
Refines runtime variables for inject()
Parameters:
Name | Type | Description |
---|---|---|
content |
local instance of json content |
|
uniqueKeys |
- Source:
Returns:
content
regexRefinery(content)
Refines special characters from the string content.
Characters in scope: ,[?*+{$^
Parameters:
Name | Type | Description |
---|---|---|
content |
content to be refined |
- Source:
Returns:
separateByComma(content)
Split by comma
Parameters:
Name | Type | Description |
---|---|---|
content |
String type content |
- Source:
Returns:
string[]