EL-SLUGIFY

URL slug generator utility. Slugs are generated efficiently, fast, they are transliterated and sanitized for use in URLs.

What makes a good slug?

You can use el_slugify in your rust and node projects.

Example in Rust

Dependencies:

toml [dependencies] el-slugify = "0.1.0" And use: ```rust

use elslugify::{slugify, slugifywith_replacement};

asserteq!(slugify("#% MaČKA mački grize rep! (RIB-a) ~*"), "macka-macki-grize-rep-rib-a"); asserteq!(slugifywithreplacement("#% MaČKA mački grize rep! (RIB-a) ~*", ''), "mackamackigrizerepriba");

```

Example in Node

Node module reuses functionality from el_slugify crate.

Dependencies:

yaml npm i --save node-el-slugify

And use: ```javascript const slugifier = require("node-el-slugify");

assert.strictEqual(slugifier.slugify('mačka Mački Grize rep!'), 'macka-macki-grize-rep') assert.strictEqual(slugifier.slugifywithreplacement('mačka Mački Grize rep!', ''), 'mackamackigrizerep') ```

License

MIT © Eisberg Labs