slugify: Convert text into slugs.

[ bsd3, library, utils ] [ Propose Tags ]

Convert a Text object into a visually pleasant URL component.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), text (>=0.1), unicode-transforms (>=0.1.0.1) [details]
License BSD-3-Clause
Copyright 2020 Willem Van Onsem
Author Willem Van Onsem
Maintainer hapytexeu+gh@gmail.com
Category utils
Home page https://github.com/hapytex/slugify#readme
Source repo head: git clone https://github.com/hapytex/slugify
Uploaded by wvanonsem90 at 2021-01-09T22:11:15Z
Distributions
Downloads 537 total (20 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-01-09 [all 1 reports]

Readme for slugify-0.1.0.0

[back to package description]

slugify

Build Status of the package by Travis Build Status of the package by Hackage Hackage version badge

Make slugs in Haskell. This package is based on the slugify function of Django [Django-doc].

Usage

One can make use of slugify, slugifyUnicode and slugifyWith from the Text.Slugify module to convert a Text object to an equivalent slug, for example:

*Text.Slugify Text.Slugify> slugify "Haskell 98 Language and Libraries"
"haskell-98-language-and-libraries"

slugify is not safe Haskell

slugify depends on unicode-transforms, which is not safe Haskell.

Contribute

You can contribute by making a pull request on the GitHub repository.

You can contact the package maintainer by sending a mail to hapytexeu+gh@gmail.com.