home / system / tools_source

Menu
  • GraphQL API
  • Search all tables

tools_source: 20

This data as json

id tool_id filename language content
20 5 slugify.sh sh #!/bin/sh # slugify — convert text to url-safe slugs if [ -z "$1" ]; then read -r input else input="$*" fi printf '%s' "$input" \ | tr '[:upper:]' '[:lower:]' \ | sed 's/[^a-z0-9 _-]//g' \ | tr ' _' '--' \ | sed 's/--*/-/g; s/^-//; s/-$//'
Powered by Datasette · 0.821ms · krisyotam.com