picoslug
v1.0.0
Published
Tiny slugify that works with extended latin and cyrillic
Readme
Tiny slugify
Turn strings into URL-safe slugs. Handles extended Latin and Cyrillic.
slugify('Crème Brûlée'); // 'creme-brulee'
slugify('Привет, мир!'); // 'privet-mir'
slugify('Fête des Lumières'); // 'fete-des-lumieres'Highlights
- 🔥 Zero dependencies
- 🗜 Tidy and compact
- 🌍 Extended Latin and Cyrillic
- 💻 Works in browser and Node.js
Usage
import { slugify, transliterate, removeAccents } from 'picoslug';
slugify('Hello World'); // 'hello-world'
transliterate('Яблоко'); // 'yabloko'
removeAccents('Crème Brûlée'); // 'Creme Brulee'