redis-slug

v0.1.3
slugifies even utf-8 chars with the power of redis
slugify slug string utf8 utf-8 unicode url redis

redisSlug

slugifies every string, even when it contains unicode with the power of Redis!

Make strings url-safe.

Forked from slug to use Redis instead of storing the unicode table in-process. The unicode table is wildly large (~10mb of heap) and every process has to store and parse the table (which blocks for ~200ms on machine). By using Redis to store just the needed portions of the unicode table, multiple processes can share one unicode table with minimal speed impact.

As a consequence of using Redis, the calls are asynchronous and client-side code has been removed.

  • respecting RFC 3986
  • Coerces foreign symbols to their english equivalent

Coming soon:

  • Tests
npm install redis-slug
npm i redis-slug

Metadata

  • Unknown
  • Whatever
  • Unknown
  • released 3/17/2016

Downloads

Maintainers