Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jdevera/sluggify

Turn words into a URL slug
https://github.com/jdevera/sluggify

Last synced: 24 days ago
JSON representation

Turn words into a URL slug

Awesome Lists containing this project

README

        

```
____ _ _ _ ____ ____ ___ _______ __
/ ___|| | | | | |/ ___|/ ___|_ _| ___\ \ / /
\___ \| | | | | | | _| | _ | || |_ \ V /
___) | |__| |_| | |_| | |_| || || _| | |
|____/|_____\___/ \____|\____|___|_| |_|
```

Turn any sentence into a [slug](http://en.wikipedia.org/wiki/Semantic_URL#Slug).

```
$ sluggify This Is The End

this-is-the-end
```

Got some accented letters? No problem:

```
$ sluggify ¿Cuántos niños viven aquí?

cuantos-ninos-viven-aqui
```

Well, a date would help. No worries, got your back:

```
$ sluggify -d Now with dates

20150219_now-with-dates
```