/ stream.nieuweinstituut.nl / node_modules / uslug /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]lib/2 years ago -  
[DIR]test/2 years ago -  
[   ]LICENSE9 years ago1.0K 
[TXT]README.md9 years ago1.4Kd768d73 docs [كارل مبارك]
[   ]index.js9 years ago 40 3e510ca test new git [كارل مبارك]
[   ]package.json2 years ago1.4K3e510ca test new git [كارل مبارك]
README.md

Uslug.js

Permissive slug generator that works with unicode. We keep only characters from the categories Letter, Number and Separator (see Unicode Categories) and the common CJK Unified Ideographs as defined in the version 6.0.0 of the Unicode specification.

Inspired by unicode-slugify. Note that this slug generator is different from node-slug which focus on translating unicode characters to english or latin equivalent.

Quick Examples

uslug('Быстрее и лучше!') // 'быстрее-и-лучше'
uslug('汉语/漢語') // '汉语漢語'

uslug('Y U NO', { lower: false })) // 'Y-U-NO'
uslug('Y U NO', { spaces: true })) // 'y u no'
uslug('Y-U|NO', { allowedChars: '|' })) // 'yu|no'

Installation

npm install uslug

Options

uslug(string, options)

Generate a slug for the string passed.

Arguments

License

This project is distributed under the MIT License. See LICENSE file for more information.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80