slugify

Convert strings to a slug. Can be used for URLs, file names, IDs etc.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install slugify
choosenim install slugify
git clone https://github.com/lenniezelk/slugify

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
slugify - - - - - - -

Source

Repository https://github.com/lenniezelk/slugify
Homepage https://github.com/lenniezelk/slugify
Registry Source nimble_official

README

Slugify

A nim library for converting a string into a slug suitable for use in URLs, IDs, filenames etc. Non latin characters are converted to their closest approximate Latin characters.

Usage

import slugify

let slug = slugify("i am a string")
echo slug # i-am-a-string

Options

Name Type Default Description
delimiter String "-" Separator between words
lowercase bool true Convert text to lowercase