Slugify

Additional

Language
Java
Version
N/A
Created
Dec 30, 2016
Updated
Jan 1, 2017 (Retired)
Owner
Mahach Imangazaliev (ImangazalievM)
Contributor
Mahach Imangazaliev (ImangazalievM)
1
Activity
Badge
Generate
Download
Source code

Show card

Slugify

Converts a string to a slug

Setup

compile 'com.github.imangazalievm:slugify:1.0.0'

Usage

Generate a slug:

Slugify slugify = new Slugify();
slugify.slugify("Android Development for Beginners"); //returns "android-development-for-beginners"

You can also change the separator to underscore separator:

slugify.withUnderscoreSeparator(true);

Custom replacements