slugify: Convert text into slugs.

[ bsd3, library, utils ] [ Propose Tags ]

Convert a Text object into a visually pleasant URL component.


[Skip to Readme]
Versions [RSS] [faq] 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-05-13T07:13:36Z
Distributions NixOS:0.1.0.1
Downloads 121 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-05-13 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates


Readme for slugify-0.1.0.1

[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.