Description

Sluglifies strings to be used in URLs or file paths

Package Information

Version1.0.0 (2015-Nov-11)
Repository https://bitbucket.org/yamadapc/d-slug
LicenseMIT
CopyrightCopyright © 2015, Pedro Tacla Yamada
AuthorsPedro Tacla Yamada
Registered byPedro Tacla Yamada
Dependencies none

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

d-slug

Sluglifies strings to be used in URLs or file paths

import slug;

void main() {
  assert("hello there".slug == "hello-there");
  assert("here we are".slug == "here-we-are");
  assert("what-the-hell-is-this".slug);
  assert("do-i-work-properly".slug);
}

License

This code is licensed under the MIT license. For more information please refer to the LICENSE file.

Available versions

1.0.0 ~master