streamdal-transform
Library used by streamdal/wasm to perform transformations on JSON payloads.
Usage
IMPORTANT
overwrite()
- Overwrite value will be used as-is - if target is intended to be a
string, then make sure to include quotes in the payload ( Ie.
"123"
)
- Overwrite value will be used as-is - if target is intended to be a
string, then make sure to include quotes in the payload ( Ie.
mask()
2. Works for numbers and strings 3. For numbers, it will replace 80% of the number characters with0
4. For strings, it will replace 80% of the characters with*
obfuscate()
2. Works ONLY on strings 3. Will replace 100% of the characters with a sha256 hashdelete_path()
2. Does not work on array elements yettruncate()
2. Works on strings 3. For strings, it will truncate the string to the specified length