slugify: Convert text into slugs.

[ bsd3, library, utils ] [ Propose Tags ] [ Report a vulnerability ]

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, 0.1.0.2
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 2024-06-17T08:53:10Z
Distributions
Downloads 779 total (100 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
All reported builds failed as of 2024-06-17 [all 1 reports]

Readme for slugify-0.1.0.2

[back to package description]

slugify

Build Status of the package by GitHub actions 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.