Open fiji-flo opened 7 years ago
abbrev 5 "hello world"
trunc 5 "Hello World"
trimAll "$" "$5.00"
"$5.00 | trimAll "$"
trimSuffix "-" "ends-with-"
trimPrefix "$" "$5"
nospace "h e l l o"
repeat count str
initials "Matt Butcher"
math/rand
wrap 80 "imagine a longer string"
wrapWith 50, "<br>", $html
contains substr str
cat $a $b $c
indent 4 "foo\nbar"
$name | replace " " "-"
len $fish | plural "one anchovy" "many anchovies"
abbrev 5 "hello world"
yields "he..."trunc 5 "Hello World"
yields "hello".trimAll "$" "$5.00"
or"$5.00 | trimAll "$"
trimSuffix "-" "ends-with-"
trimPrefix "$" "$5"
nospace "h e l l o"
becomes "hello"repeat count str
. (This simplifies common pipelines)initials "Matt Butcher"
returns "MB"math/rand
wrap 80 "imagine a longer string"
wrapWith 50, "<br>", $html
contains substr str
. (This simplifies common pipelines)cat $a $b $c
.indent 4 "foo\nbar"
produces " foo\n bar"indent 4 "foo\nbar"
produces "\n foo\n bar"$name | replace " " "-"
len $fish | plural "one anchovy" "many anchovies"