Type Definitions
-
IngestError
-
Error details captured when a transform fails.
Type:
- object
Properties:
Name Type Description stepstring Transform function name, or
"anonymous".messagestring Error message thrown by the transform.
inputstring Input value received by the failed transform.
-
IngestErrorHandler(errObj)
-
Error handler invoked immediately when a transform fails.
Parameters:
Name Type Description errObjIngestor~IngestError Details about the transform failure.
Returns:
- Type
- void
-
IngestOnErrorRegistrar(handler)
-
Registers an error handler on an Ingestor~IngestPipeline for chaining.
Parameters:
Name Type Description handlerIngestor~IngestErrorHandler Error handler to register.
Returns:
-
IngestPipeline()
-
Callable ingest pipeline returned by ingestor.
Properties:
Name Type Description getErrorsfunction Returns a shallow copy of the errors accumulated during the most recent invocation.
onErrorIngestor~IngestOnErrorRegistrar Registers a handler that is invoked immediately when a transform fails and returns the ingest function for chaining.
-
IngestTransform(s)
-
Pure string transformation used by ingestor.
Parameters:
Name Type Description sstring Input text.
Returns:
Transformed text.
- Type
- string
-
IngestTransformFactory( [option])
-
Factory that creates an Ingestor~IngestTransform from an optional configuration string.
Parameters:
Name Type Argument Description optionstring <optional>
Configuration string for the factory.
Returns:
-
QuoteTransforms
-
Quoting and escaping transformations.
Type:
- object
Properties:
Name Type Description unquoteIngestor~IngestTransform Remove exactly one level of matching single or double quotes.
conditionalQuoteIngestor~IngestTransform Wrap the string in double quotes only when needed.
quoteWithIngestor~IngestTransformFactory Create a wrapper that quotes text with the chosen quote character.
normalizeQuotesIngestor~IngestTransformFactory Normalize all quoting to a given style.
removeAllQuotesIngestor~IngestTransform Remove all quotes from the input string.
removeUnprotectedQuotesIngestor~IngestTransform Remove all unprotected single and double quote characters from the input string.
unescapeBackslashesIngestor~IngestTransform Remove backslash escapes from escaped characters.
-
WhitespaceTransforms
-
Whitespace and line-ending transformations.
Type:
- object
Properties:
Name Type Description normalizeNewlinesIngestor~IngestTransform Replace all newline variants with
\n.trimLinesIngestor~IngestTransform Trim leading and trailing whitespace from every line.
collapseWhitespaceIngestor~IngestTransform Collapse all whitespace, including newlines, into single spaces.
collapseSpacesIngestor~IngestTransform Collapse spaces and tabs while preserving newline boundaries.
unwrapLinesIngestor~IngestTransform Merge multi-line commands by removing backslash-newline continuations.
stripZeroWidthIngestor~IngestTransform Remove all zero-width non-joiner characters from the input string.
zeroWidthobject Namespace for zero-width character transformations.
