slug 1.0.0

Sluglifies strings to be used in URLs or file paths


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

dub.json
dub.sdl

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.

Authors:
Pedro Tacla Yamada
Dependencies:
none
Versions:
1.0.0 2015-Nov-11
~master 2016-Feb-02
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 79 downloads total