lovell / limax

Node.js module to generate URL slugs. Another one? This one cares about i18n and transliterates non-Latin scripts to conform to the RFC3986 standard. Mostly API-compatible with similar modules.
Apache License 2.0
586 stars 50 forks source link

client side? #11

Closed ralyodio closed 8 years ago

ralyodio commented 8 years ago

How well does this work client side?

I was using node-slug but on the client side it requires a 2MB file for utf8 characters to load which isn't realistic.

lovell commented 8 years ago

Hello, the support for Pinyin in limax is backed by the the native (C++) nodejieba module, which is used for word segmentation. This won't work on the client side.

If you need client side support and can live without transliteration of Chinese and Japanese scripts, then I recommend speakingurl.min.js, which weighs in at ~16KB.

lovell commented 8 years ago

Hopefully this answered you question - feel free to re-open if not.