26 Unix tools. One binary. Zero dependencies. · the missing coreutils for AI pipelines · vrk mcp - expose all 26 tools to any AI agent · brew install vrk - ready in 5 seconds · 26 Unix tools. One binary. Zero dependencies. · the missing coreutils for AI pipelines · vrk mcp - expose all 26 tools to any AI agent · brew install vrk - ready in 5 seconds

vrk slug

About

Turns arbitrary text into URL-safe slugs. Normalizes Unicode, lowercases everything, and keeps only letters and numbers. Truncates at word boundaries so you don’t get cut-off words. Processes one line at a time for batch use.

The problem

You need a URL-safe slug from a blog title. You lowercase and replace spaces with hyphens, but forget about Unicode, punctuation, and consecutive separators. The slug “my–great–post-!” breaks your router.

Before and after

Before

echo 'My Great Post!' | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | tr -cd 'a-z0-9-'
# consecutive hyphens, no Unicode normalization, no truncation

After

echo 'My Great Post!' | vrk slug

Example

echo 'My Article Title' | vrk slug

Exit codes

CodeMeaning
0Success
1Runtime error (I/O failure)
2Interactive TTY with no stdin

Flags

FlagShortTypeDescription
--separatorstringWord separator character or string
--maxintMax output length; truncated at last separator (0 = no limit)
--json-jboolEmit JSON per line: {input, output}
--quiet-qboolSuppress stderr output