A collection of string utilities for nushell
Repo fdncred/nu_plugin_strutils, read from GitHub 1 min ago. fdncred has not joined Take My Repo.
fdncred/nu_plugin_strutils is a public repo on GitHub by fdncred. A collection of string utilities for nushell. It declares the MIT license on GitHub. It is written mainly in Rust, has 5 stars and last changed on 2026-11-18. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
This is a Nushell plugin called "strutils".
str similarity - Calculate edit distance between strings using various algorithmsstr compress - Compress a string using brotli, flate, or zlibstr decompress - Decompress a string using brotli, flate, or zlibstr dedent - Remove common leading whitespace from textstr indent - Prefix each line with a given stringstr deunicode - Replace unicode characters with ASCII counterpartsstr shl-split - Parse an argument string with Unix rules similar to Python's shlex.split and GLib's g_shell_parse_argvstr shl-quote - Escapes special characters in a string, so that it will retain its literal meaning when used as a part of command in Unix shellstr slug - Convert a string to a slug (URL/filename friendly)str wrap - Wrap text to a specified widthstr before - Return the substring before a delimiterstr after - Return the substring after a delimiterstr between - Return the substring between two delimitersstr increment - Increment the last run of decimal digits, keeping zero-paddingstr truncate - Truncate (and optionally pad) a string by terminal display widthstr align - Align delimited columns using elastic tabstopsstr common-prefix - Return the longest common prefix of two strings or a list of stringsstr unescape - Interpret C / Rust / JSON-style backslash escape sequences> cargo install --path . > plugin add ~/.cargo/bin/nu_plugin_strutils > plugin use strutils
This plugin implements a some string utilities that are not included in nushell.
str similarity is an older plugin that I thought fit here since this is a common plugin for string utilities.
This plugin uses the textdistance.rs crate to calculate edit distance
❯ "nushell" | str similarity "nutshell" --algorithm levenshtein 1
❯ "nushell" | str similarity "nutshell" -all
╭────┬────────────────────────────┬──────────╮
│ # │ algorithm │ distance │
├────┼────────────────────────────┼──────────┤
│ 0 │ bag │ 1 │
│ 1 │ cosine │ 0.94 │
│ 2 │ damerau_levenshtein │ 1 │
│ 3 │ entropy_ncd │ 0.05 │
│ 4 │ hamming │ 5 │
│ 5 │ jaccard │ 0.88 │
│ 6 │ jaro │ 0.96 │
│ 7 │ jaro_winkler │ 0.97 │
│ 8 │ levenshtein │ 1 │
│ 9 │ longest_common_subsequence │ 7 │
│ 10 │ longest_common_substring │ 5 │
│ 11 │ length │ 1 │
│ 12 │ lig3 │ 0.86 │
│ 13 │ mlipns │ 0 │
│ 14 │ overlap │ 1 │
│ 15 │ prefix │ 2 │
│ 16 │ ratcliff_obershelp │ 0.93 │
│ 17 │ roberts │ 0.93 │
│ 18 │ sift4_common │ 1 │
│ 19 │ sift4_simple │ 1 │
│ 20 │ smith_waterman │ 6 │
│ 21 │ sorensen_dice │ 0.93 │
│ 22 │ suffix │ 5 │
│ 23 │ tversky │ 0.88 │
│ 24 │ yujian_bo │ 0.12 │
├────┼────────────────────────────┼──────────┤
│ # │ algorithm │ distance │
╰────┴────────────────────────────┴──────────╯
The output is normalized between 0 and 1
❯ "nushell" | str similarity "nutshell" --all --normalize
╭────┬────────────────────────────┬──────────╮
│ # │ algorithm │ distance │
├────┼────────────────────────────┼──────────┤
│ 0 │ bag │ 0.12 │
│ 1 │ cosine │ 0.94 │
│ 2 │ damerau_levenshtein │ 0.12 │
│ 3 │ entropy_ncd │ 0.05 │
│ 4 │ hamming │ 0.62 │
│ 5 │ jaccard │ 0.88 │
│ 6 │ jaro │ 0.96 │
│ 7 │ jaro_winkler │ 0.97 │
│ 8 │ levenshtein │ 0.12 │
│ 9 │ longest_common_subsequence │ 0.88 │
│ 10 │ longest_common_substring │ 0.62 │
│ 11 │ length │ 0.12 │
│ 12 │ lig3 │ 0.86 │
│ 13 │ mlipns │ 0 │
│ 14 │ overlap │ 1 │
│ 15 │ prefix │ 0.25 │
│ 16 │ ratcliff_obershelp │ 0.93 │
│ 17 │ roberts │ 0.93 │
│ 18 │ sift4_common │ 0.12 │
│ 19 │ sift4_simple │ 0.12 │
│ 20 │ smith_waterman │ 0.75 │
│ 21 │ sorensen_dice │ 0.93 │
│ 22 │ suffix │ 0.62 │
│ 23 │ tversky │ 0.88 │
│ 24 │ yujian_bo │ 0.12 │
├────┼────────────────────────────┼──────────┤
│ # │ algorithm │ distance │
╰────┴────────────────────────────┴──────────╯
❯ str similarity --list ╭────┬────────────────────────────┬──────────╮ │ # │ algorithm │ short │ ├────┼────────────────────────────┼──────────┤ │ 0 │ bag │ bag │ │ 1 │ cosine │ cos │ │ 2 │ damerau_levenshtein │ dlev │ │ 3 │ entropy_ncd │ entncd │ │ 4 │ hamming │ ham │ │ 5 │ jaccard │ jac │ │ 6 │ jaro │ jar │ │ 7 │ jaro_winkler │ jarw │ │ 8 │ levenshtein │ lev │ │ 9 │ longest_common_subsequence │ lcsubseq │ │ 10 │ longest_common_substring │ lcsubstr │ │ 11 │ length │ len │ │ 12 │ lig3 │ lig │ │ 13 │ mlipns │ mli │ │ 14 │ overlap │ olap │ │ 15 │ prefix │ pre │ │ 16 │ ratcliff_obershelp │ rat │ │ 17 │ roberts │ rob │ │ 18 │ sift4_common │ scom │ │ 19 │ sift4_simple │ ssim │ │ 20 │ smith_waterman │ smithw │ │ 21 │ sorensen_dice │ soredice │ │ 22 │ suffix │ suf │ │ 23 │ tversky │ tv │ │ 24 │ yujian_bo │ ybo │ ├────┼────────────────────────────┼──────────┤ │ # │ algorithm │ short │ ╰────┴────────────────────────────┴──────────╯
str compress will convert nushell values to a string and then compress that string using the specified method with the parameters provided.
❯ "ABCDEFG" | str compress --brotli Length: 11 (0xb) bytes | printable whitespace ascii_other non_ascii 00000000: 07 03 80 41 42 43 44 45 46 47 03 ••×ABCDEFG•
❯ "ABCDEFG" | str compress --flate Length: 13 (0xd) bytes | printable whitespace ascii_other non_ascii 00000000: 73 74 72 76 71 75 73 07 00 strvqus•0
❯ "ABCDEFG" | str compress --zlib Length: 15 (0xf) bytes | printable whitespace ascii_other non_ascii 00000000: 78 5e 73 74 72 76 71 75 73 07 00 07 5b 01 dd x^strvqus•0•[•×
str decompress is meant to be the counterpart of str compress and decompress whatever it compresses.
❯ "ABCDEFG" | str compress --brotli | str decompress --brotli ABCDEFG
❯ "ABCDEFG" | str compress --flate | str decompress --flate ABCDEFG
❯ "ABCDEFG" | str compress --zlib | str decompress --zlib ABCDEFG
str dedent removes common leading whitespace from every line in a text while preserving relative indentation.
❯ " line 1\n line 2\n line 3" | str dedent line 1 line 2 line 3
str indent prefixes each line with the given string.
❯ "line 1\nline 2\nline 3" | str indent " " line 1 line 2 line 3
str deunicode replaces unicode accented characters with their ASCII counterparts based on the deunicode crate.
> 'A…C' | str deunicode A...C
str shl-split parses an argument string with Unix rules similar to Python's shlex.split and GLib's g_shell_parse_argv.
❯ " a # very long comment \n b # another comment" | str shl-split ╭───┬───╮ │ 0 │ a │ │ 1 │ b │ ╰───┴───╯
str shl-quote escapes special characters in a string, so that it will retain its literal meaning when used as a part of command in Unix shell.
❯ "'" | str shl-quote ''\'''
str slug converts a string to a URL or filename-friendly slug.
> "Hello, World!" | str slug hello-world
> "Æúű--cool?" | str slug aeuu-cool
str wrap wraps each line in a text to a specified width.
Wrap text at 10 columns
> "now is the time for all good men to come to the aid of their country" | str wrap --width 10 now is the time for all good men to come to the aid of their country
Wrap text at 10 columns using optimal-fit
> "now is the time for all good men to come to the aid of their country" | str wrap --width 10 --optimal-fit now is the time for all good men to come to the aid of their country
str before returns the substring before the first (or last) occurrence of a delimiter.
If the delimiter is missing, the original string is returned unless --strict is set.
> "key=value=extra" | str before "=" key
> "a/b/c.txt" | str before --last "." a/b/c
str after returns the substring after the first (or last) occurrence of a delimiter.
If the delimiter is missing, an empty string is returned unless --strict is set.
> "key=value=extra" | str after "=" value=extra
> "a/b/c.txt" | str after --last "/" c.txt
str between returns the substring between two delimiters.
If either delimiter is missing, an empty string is returned unless --strict is set.
> "foo[bar]baz" | str between "[" "]" bar
str increment increments the last run of decimal digits and keeps zero-padding.
> "img001.png" | str increment img002.png
> "v1.2.9" | str increment v1.2.10
str truncate truncates (and optionally pads) a string by terminal display width.
> "now is the time" | str truncate --width 10 now is th…
> "hi" | str truncate --width 6 --pad hi
str align aligns delimited columns using elastic tabstops.
> "name\tcount\nalice\t12\nbob\t3" | str align name count alice 12 bob 3
> "a,bb,ccc\n1,2,3" | str align --separator "," a bb ccc 1 2 3
str common-prefix returns the longest common prefix of two strings or a list of strings.
> ["src/commands/mod.rs" "src/commands/str_slug.rs"] | str common-prefix src/commands/
> "foobar" | str common-prefix "foobaz" fooba
str unescape interprets C / Rust / JSON-style backslash escapes.
> 'hello\nworld' | str unescape hello world
> 'crab: \u{1F980}' | str unescape crab: 🦀
fdncred/nu_plugin_strutils is a public repo on GitHub by fdncred. A collection of string utilities for nushell.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-18. GitHub counts 0 open issues and pull requests. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
A smarter cd command. Supports all major shells.
Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
A nushell plugin that will inspect a file and return information based on it's magic number.

A finder GUI application that uses fff/fff-search to locate files quickly on MacOS, Linux, and Windows and integrates with Nushell.
A nushell plugin that makes finding and printing emojis easy in nushell
A nushell plugin that transform nushell values into a tree shape
A nushell plugin for parsing json that uses the json path specification.