{"_id":"uslug","_rev":"104836","name":"uslug","description":"A permissive slug generator that works with unicode.","dist-tags":{"latest":"1.0.4"},"maintainers":[{"name":"jeremys","email":"jerem.selier@gmail.com"}],"time":{"modified":"2021-06-03T10:37:39.000Z","created":"2012-02-01T15:34:07.842Z","1.0.4":"2016-03-08T21:52:27.008Z","1.0.3":"2012-05-20T12:14:49.254Z","1.0.2":"2012-02-01T16:42:29.714Z","1.0.1":"2012-02-01T15:54:55.397Z","1.0.0":"2012-02-01T15:34:07.842Z"},"users":{"seangenabe":true},"author":{"name":"Jeremy Selier","email":"jerem.selier@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/jeremys/uslug.git"},"versions":{"1.0.4":{"name":"uslug","version":"1.0.4","description":"A permissive slug generator that works with unicode.","author":{"name":"Jeremy Selier","email":"jerem.selier@gmail.com"},"dependencies":{"unorm":">= 1.0.0"},"devDependencies":{"should":">= 0.2.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/jeremys/uslug.git"},"main":"./index","engines":{"node":">= 0.4.0"},"bugs":{"url":"http://github.com/jeremys/uslug/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jeremys/uslug/raw/master/LICENSE"}],"gitHead":"a58c4aedd5e13b2c1ad852d5e776b1e4cd7756c0","homepage":"https://github.com/jeremys/uslug#readme","_id":"uslug@1.0.4","scripts":{},"_shasum":"b9a22f0914e0a86140633dacc302e5f4fa450677","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"jeremys","email":"jerem.selier@gmail.com"},"dist":{"shasum":"b9a22f0914e0a86140633dacc302e5f4fa450677","size":57907,"noattachment":false,"key":"/uslug/-/uslug-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/uslug/download/uslug-1.0.4.tgz"},"maintainers":[{"name":"jeremys","email":"jerem.selier@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/uslug-1.0.4.tgz_1457473942256_0.9994973179418594"},"directories":{},"publish_time":1457473947008,"_cnpm_publish_time":1457473947008,"_hasShrinkwrap":false},"1.0.3":{"name":"uslug","version":"1.0.3","description":"A permissive slug generator that works with unicode.","author":{"name":"Jeremy Selier","email":"jerem.selier@gmail.com"},"dependencies":{"unorm":">= 1.0.0"},"devDependencies":{"should":">= 0.2.1"},"repository":{"type":"git","url":"git://github.com/jeremys/uslug.git"},"main":"./index","engines":{"node":">= 0.4.0"},"bugs":{"url":"http://github.com/jeremys/uslug/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jeremys/uslug/raw/master/LICENSE"}],"_npmUser":{"name":"jeremys","email":"jerem.selier@gmail.com"},"_id":"uslug@1.0.3","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"d371d36342323a2b8b8fc29411f0db209f5edba0","size":43961,"noattachment":false,"key":"/uslug/-/uslug-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/uslug/download/uslug-1.0.3.tgz"},"maintainers":[{"name":"jeremys","email":"jerem.selier@gmail.com"}],"directories":{},"publish_time":1337516089254,"_hasShrinkwrap":false,"_cnpm_publish_time":1337516089254},"1.0.2":{"name":"uslug","version":"1.0.2","description":"A permissive slug generator that works with unicode.","author":{"name":"Jeremy Selier","email":"jerem.selier@gmail.com"},"dependencies":{"unorm":">= 1.0.0"},"devDependencies":{"should":">= 0.2.1"},"repository":{"type":"git","url":"git://github.com/jeremys/uslug.git"},"main":"./index","engines":{"node":">= 0.4.0"},"bugs":{"url":"http://github.com/jeremys/uslug/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jeremys/uslug/raw/master/LICENSE"}],"_npmUser":{"name":"jeremys","email":"jerem.selier@gmail.com"},"_id":"uslug@1.0.2","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"1465a6cb5c7881aa86d0dffd04fc474780bb932f","size":43782,"noattachment":false,"key":"/uslug/-/uslug-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/uslug/download/uslug-1.0.2.tgz"},"maintainers":[{"name":"jeremys","email":"jerem.selier@gmail.com"}],"directories":{},"publish_time":1328114549714,"_hasShrinkwrap":false,"_cnpm_publish_time":1328114549714},"1.0.1":{"name":"uslug","version":"1.0.1","description":"A permissive slug generator that works with unicode.","author":{"name":"Jeremy Selier","email":"jerem.selier@gmail.com"},"dependencies":{"unorm":">= 1.0.0"},"devDependencies":{"should":">= 0.2.1"},"repository":{"type":"git","url":"git://github.com/jeremys/uslug.git"},"main":"./index","engines":{"node":">= 0.4.0"},"bugs":{"url":"http://github.com/jeremys/uslug/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jeremys/uslug/raw/master/LICENSE"}],"_npmUser":{"name":"jeremys","email":"jerem.selier@gmail.com"},"_id":"uslug@1.0.1","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"71b969148634ebbf00aecdb8252303e6acfa1ce0","size":43690,"noattachment":false,"key":"/uslug/-/uslug-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/uslug/download/uslug-1.0.1.tgz"},"maintainers":[{"name":"jeremys","email":"jerem.selier@gmail.com"}],"directories":{},"publish_time":1328111695397,"_hasShrinkwrap":false,"_cnpm_publish_time":1328111695397},"1.0.0":{"name":"uslug","version":"1.0.0","description":"A permissive slug generator that works with unicode.","author":{"name":"Jeremy Selier","email":"jerem.selier@gmail.com"},"dependencies":{"unorm":">= 1.0.0"},"devDependencies":{"should":">= 0.2.1"},"repository":{"type":"git","url":"git://github.com/jeremys/uslug.git"},"main":"./index","engines":{"node":">= 0.4.0"},"bugs":{"url":"http://github.com/jeremys/uslug/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jeremys/uslug/raw/master/LICENSE"}],"_npmUser":{"name":"jeremys","email":"jerem.selier@gmail.com"},"_id":"uslug@1.0.0","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"7412f6794eb0a2e521c109613c63e4ccb269928b","size":43683,"noattachment":false,"key":"/uslug/-/uslug-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/uslug/download/uslug-1.0.0.tgz"},"maintainers":[{"name":"jeremys","email":"jerem.selier@gmail.com"}],"directories":{},"publish_time":1328110447842,"_hasShrinkwrap":false,"_cnpm_publish_time":1328110447842}},"readme":"# Uslug.js\n\nPermissive slug generator that works with unicode.\nWe keep only characters from the categories Letter, Number and Separator (see [Unicode Categories](http://www.unicode.org/versions/Unicode6.0.0/ch04.pdf))\nand the common [CJK Unified Ideographs](http://www.unicode.org/versions/Unicode6.0.0/ch12.pdf) as defined in the version 6.0.0 of the Unicode specification.\n\nInspired by [unicode-slugify](https://github.com/mozilla/unicode-slugify).\nNote that this slug generator is different from [node-slug](https://github.com/dodo/node-slug) which focus on translating unicode characters to english or latin equivalent.\n\n\n## Quick Examples\n\n    uslug('Быстрее и лучше!') // 'быстрее-и-лучше'\n    uslug('汉语/漢語') // '汉语漢語'\n\n    uslug('Y U NO', { lower: false })) // 'Y-U-NO'\n    uslug('Y U NO', { spaces: true })) // 'y u no'\n    uslug('Y-U|NO', { allowedChars: '|' })) // 'yu|no'\n\n\n## Installation\n\n    npm install uslug\n\n\n## Options\n\n### uslug(string, options)\n\nGenerate a slug for the string passed.\n\n__Arguments__\n\n* string - The string you want to slugify.\n* options - An optional object that can contain:  \n    * allowedChars: a String of chars that you want to be whitelisted. Default: '-_~'.  \n    * lower: a Boolean to force to lower case the slug. Default: true.  \n    * spaces: a Boolean to allow spaces. Default: false.  \n\n\n## License\n\nThis project is distributed under the MIT License. See LICENSE file for more information.","_attachments":{},"homepage":"https://github.com/jeremys/uslug#readme","bugs":{"url":"http://github.com/jeremys/uslug/issues"}}