Created
November 25, 2013 01:32
-
-
Save yyolk/7634921 to your computer and use it in GitHub Desktop.
usage: ./slug.py "My unformatted STriNG" outputs "my-unformatted-string"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from slugify import slugify | |
from sys import argv | |
print slugify(" ".join(argv[1:])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment