trim
Last updated
Trims whitespace from both ends of a string.
trim(input)or chained:
<string>.trim()input (string, optional when chained) - The string to trim.
Function call
trim(" hello ")
// "hello"Chained usage
" hello world ".trim()
// "hello world"CLI usage
$ echo '{"value": " spaced "}' | dasel -i json 'value.trim()'
spacedLast updated