{"_id":"slugg","_rev":"411247","name":"slugg","description":"Make strings url safe (with no dependencies)","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"bengourley","email":"bn@grly.me"}],"time":{"modified":"2021-08-04T05:09:17.000Z","created":"2012-11-30T23:05:25.975Z","1.2.1":"2017-05-31T08:48:10.774Z","1.2.0":"2017-03-15T12:42:34.776Z","1.1.0":"2016-11-30T14:08:51.209Z","1.0.0":"2016-02-19T10:48:49.561Z","0.1.2":"2013-06-24T08:47:01.478Z","0.1.1":"2013-06-14T09:02:30.099Z","0.1.0":"2013-04-22T11:20:47.228Z","0.0.1":"2012-12-03T07:46:27.171Z","0.0.0":"2012-11-30T23:05:25.975Z"},"users":{"mikeljames":true,"uh-engineer":true,"crankincrankin":true,"martinspinks":true,"chalassa":true},"author":{"name":"Ben Gourley"},"repository":{"type":"git","url":"git+ssh://git@github.com/bengourley/slugg.git"},"versions":{"1.2.1":{"name":"slugg","version":"1.2.1","description":"Make strings url safe (with no dependencies)","publishConfig":{"registry":"http://registry.npmjs.org/"},"keywords":["slug","url","string"],"main":"slugg.js","scripts":{"test":"mocha test -R spec","test-browser":"mocha-srv test"},"devDependencies":{"mocha":"~1.7","mocha-srv":"~0.1","proclaim":"~1.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/bengourley/slugg.git"},"author":{"name":"Ben Gourley"},"license":"BSD","gitHead":"420e55fba56f0e8990cb81ec3521a0b55ded6814","bugs":{"url":"https://github.com/bengourley/slugg/issues"},"homepage":"https://github.com/bengourley/slugg#readme","_id":"slugg@1.2.1","_shasum":"e752af2241af3f2714463c5de225cea47608740a","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.3.1","_npmUser":{"name":"bengourley","email":"bn@grly.me"},"dist":{"shasum":"e752af2241af3f2714463c5de225cea47608740a","size":3405,"noattachment":false,"key":"/slugg/-/slugg-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/slugg/download/slugg-1.2.1.tgz"},"maintainers":[{"name":"bengourley","email":"bn@grly.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugg-1.2.1.tgz_1496220489772_0.430999101838097"},"directories":{},"publish_time":1496220490774,"_hasShrinkwrap":false,"_cnpm_publish_time":1496220490774},"1.2.0":{"name":"slugg","version":"1.2.0","description":"Make strings url safe (with no dependencies)","publishConfig":{"registry":"http://registry.npmjs.org/"},"keywords":["slug","url","string"],"main":"slugg.js","scripts":{"test":"mocha test -R spec","test-browser":"mocha-srv test"},"devDependencies":{"mocha":"~1.7","mocha-srv":"~0.1","proclaim":"~1.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/bengourley/slugg.git"},"author":{"name":"Ben Gourley"},"license":"BSD","gitHead":"af1146b704147c2fcf2f8a838dbc30f25bdf6f21","bugs":{"url":"https://github.com/bengourley/slugg/issues"},"homepage":"https://github.com/bengourley/slugg#readme","_id":"slugg@1.2.0","_shasum":"c09b03aba3a43030854a601db7ace037dab769b4","_from":".","_npmVersion":"4.0.5","_nodeVersion":"6.3.1","_npmUser":{"name":"bengourley","email":"bn@grly.me"},"dist":{"shasum":"c09b03aba3a43030854a601db7ace037dab769b4","size":3395,"noattachment":false,"key":"/slugg/-/slugg-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slugg/download/slugg-1.2.0.tgz"},"maintainers":[{"name":"bengourley","email":"bn@grly.me"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/slugg-1.2.0.tgz_1489581754115_0.9797157689463347"},"directories":{},"publish_time":1489581754776,"_cnpm_publish_time":1489581754776,"_hasShrinkwrap":false},"1.1.0":{"name":"slugg","version":"1.1.0","description":"Make strings url safe (with no dependencies)","publishConfig":{"registry":"http://registry.npmjs.org/"},"keywords":["slug","url","string"],"main":"slugg.js","scripts":{"test":"mocha test -R spec","test-browser":"mocha-srv test"},"devDependencies":{"mocha":"~1.7","mocha-srv":"~0.1","proclaim":"~1.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/bengourley/slugg.git"},"author":{"name":"Ben Gourley"},"license":"BSD","gitHead":"f62306fa8712fa5008e26169e16ce282e241c5c6","bugs":{"url":"https://github.com/bengourley/slugg/issues"},"homepage":"https://github.com/bengourley/slugg#readme","_id":"slugg@1.1.0","_shasum":"4832e29b42d71edaec5b18691347651d75a52e6c","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"bengourley","email":"bn@grly.me"},"dist":{"shasum":"4832e29b42d71edaec5b18691347651d75a52e6c","size":3320,"noattachment":false,"key":"/slugg/-/slugg-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slugg/download/slugg-1.1.0.tgz"},"maintainers":[{"name":"bengourley","email":"bn@grly.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/slugg-1.1.0.tgz_1480514929375_0.3624058326240629"},"directories":{},"publish_time":1480514931209,"_cnpm_publish_time":1480514931209,"_hasShrinkwrap":false},"1.0.0":{"name":"slugg","version":"1.0.0","description":"Make strings url safe (with no dependencies)","keywords":["slug","url","string"],"main":"slugg.js","scripts":{"test":"mocha test -R spec","test-browser":"mocha-srv test"},"devDependencies":{"mocha":"~1.7","mocha-srv":"~0.1","proclaim":"~1.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/bengourley/slugg.git"},"author":{"name":"Ben Gourley"},"license":"BSD","gitHead":"edd9da4e571233d99e3928c09791e14b085c116e","bugs":{"url":"https://github.com/bengourley/slugg/issues"},"homepage":"https://github.com/bengourley/slugg#readme","_id":"slugg@1.0.0","_shasum":"d7dfc3bed51722b62272d9d908647913118893d8","_from":".","_npmVersion":"2.14.8","_nodeVersion":"0.10.40","_npmUser":{"name":"bengourley","email":"bn@grly.me"},"dist":{"shasum":"d7dfc3bed51722b62272d9d908647913118893d8","size":3713,"noattachment":false,"key":"/slugg/-/slugg-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slugg/download/slugg-1.0.0.tgz"},"maintainers":[{"name":"bengourley","email":"bn@grly.me"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/slugg-1.0.0.tgz_1455878925282_0.024217616068199277"},"directories":{},"publish_time":1455878929561,"_cnpm_publish_time":1455878929561,"_hasShrinkwrap":false},"0.1.2":{"name":"slugg","version":"0.1.2","description":"Make strings url safe (with no dependencies)","keywords":["slug","url","string"],"main":"slugg.js","scripts":{"test":"./node_modules/.bin/mocha test -R spec","test-browser":"./node_modules/.bin/mocha-srv test"},"devDependencies":{"mocha":"~1.7","mocha-srv":"~0.1","proclaim":"~1.2"},"repository":{"type":"git","url":"git@github.com:bengourley/slugg.git"},"author":{"name":"Ben Gourley"},"license":"BSD","readmeFilename":"Readme.md","_id":"slugg@0.1.2","dist":{"shasum":"3a2a65baaf24c0f62eaac8acf243740a379072b5","size":3524,"noattachment":false,"key":"/slugg/-/slugg-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/slugg/download/slugg-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"bengourley","email":"bn@grly.me"},"maintainers":[{"name":"bengourley","email":"bn@grly.me"}],"directories":{},"publish_time":1372063621478,"_cnpm_publish_time":1372063621478,"_hasShrinkwrap":false},"0.1.1":{"name":"slugg","version":"0.1.1","description":"Make strings url safe (with no dependencies)","keywords":["slug","url","string"],"main":"slugg.js","scripts":{"test":"./node_modules/.bin/mocha test -R spec","test-browser":"./node_modules/.bin/mocha-srv test"},"devDependencies":{"mocha":"~1.7","mocha-srv":"~0.1","proclaim":"~1.2"},"repository":{"type":"git","url":"git@github.com:bengourley/slugg.git"},"author":{"name":"Ben Gourley"},"license":"BSD","readmeFilename":"Readme.md","_id":"slugg@0.1.1","dist":{"shasum":"ea605280110d76848adcf1a55c8b19589b396522","size":3508,"noattachment":false,"key":"/slugg/-/slugg-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/slugg/download/slugg-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"bengourley","email":"bn@grly.me"},"maintainers":[{"name":"bengourley","email":"bn@grly.me"}],"directories":{},"publish_time":1371200550099,"_cnpm_publish_time":1371200550099,"_hasShrinkwrap":false},"0.1.0":{"name":"slugg","version":"0.1.0","description":"Make strings url safe (with no dependencies)","keywords":["slug","url","string"],"main":"slugg.js","scripts":{"test":"./node_modules/.bin/mocha test -R spec"},"devDependencies":{"mocha":"~1.7"},"repository":{"type":"git","url":"git@github.com:bengourley/slugg.git"},"author":{"name":"Ben Gourley"},"license":"BSD","readmeFilename":"Readme.md","_id":"slugg@0.1.0","dist":{"shasum":"19d4f88ffb72d848f2cfe301e5963ae41a6ec827","size":3281,"noattachment":false,"key":"/slugg/-/slugg-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slugg/download/slugg-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"bengourley","email":"bn@grly.me"},"maintainers":[{"name":"bengourley","email":"bn@grly.me"}],"directories":{},"publish_time":1366629647228,"_cnpm_publish_time":1366629647228,"_hasShrinkwrap":false},"0.0.1":{"name":"slugg","version":"0.0.1","description":"Make strings url safe (with no dependencies)","keywords":["slug","url","string"],"main":"slugg.js","scripts":{"test":"./node_modules/.bin/mocha test -R spec"},"devDependencies":{"mocha":"~1.7"},"repository":{"type":"git","url":"git@github.com:bengourley/slugg.git"},"author":{"name":"Ben Gourley"},"license":"BSD","_id":"slugg@0.0.1","dist":{"shasum":"f3ee58b8756def5e51e15c396ade502ccf396ec6","size":2932,"noattachment":false,"key":"/slugg/-/slugg-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/slugg/download/slugg-0.0.1.tgz"},"_npmVersion":"1.1.63","_npmUser":{"name":"bengourley","email":"benleighgourley@gmail.com"},"maintainers":[{"name":"bengourley","email":"bn@grly.me"}],"directories":{},"publish_time":1354520787171,"_cnpm_publish_time":1354520787171,"_hasShrinkwrap":false},"0.0.0":{"name":"slugg","version":"0.0.0","description":"Make strings url safe (with no dependencies)","keywords":["slug","url","string"],"main":"slugg.js","scripts":{"test":"./node_modules/.bin/mocha test -R spec"},"devDependencies":{"mocha":"~1.7"},"repository":{"type":"git","url":"git@github.com:bengourley/slugg.git"},"author":{"name":"Ben Gourley"},"license":"BSD","_id":"slugg@0.0.0","dist":{"shasum":"66ebc80ba14580eadf510a03d5cd8e83f31a327c","size":2379,"noattachment":false,"key":"/slugg/-/slugg-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slugg/download/slugg-0.0.0.tgz"},"_npmVersion":"1.1.63","_npmUser":{"name":"bengourley","email":"benleighgourley@gmail.com"},"maintainers":[{"name":"bengourley","email":"bn@grly.me"}],"directories":{},"publish_time":1354316725975,"_cnpm_publish_time":1354316725975,"_hasShrinkwrap":false}},"readme":"# Slugg\n\nMake strings url-safe.\n\n- Comprehensive tests\n- No dependencies\n- Not in coffee-script (lol)\n- Coerces foreign symbols to their english equivalent\n- Doesn't try to do anything fancy with symbols (just removes them)\n- Works in browser (`window.slugg`) and AMD/CommonJS-flavoured module loaders\n\n```\nnpm install slugg\n```\n\n## Usage:\n\n### slug(string, [separator, toStrip])\n\n```js\nvar slug = require('slugg')\n\nslug('My fantastic blog post')\n//-> 'my-fantastic-blog-post'\n\nslug('Today I found £5')\n//-> 'today-i-found-5'\n\nslug('I ♥ you')\n//-> 'i-you'\n```\n\nIf you want a separator other than '-', pass it in as the second argument:\n\n```js\nslug('Kevin Spacey', ' ')\n//-> 'kevin spacey'\n```\n\nBy default, slugg will strip (i.e. remove and not replace) any sort of quotemark: `'\"’‘”“`.\n\nIf you want to control which characters are stripped, pass a regex as the last option\nthat will match the chars you want to replace, eg:\n\n```js\nslug('Mum\\'s cooking', /'/g)\n//-> 'mums-cooking'\n```\n\nRemember to use the `g` flag if you want all the matches stripped (not just the first).\n\nAfter version 1.1.0, a new syntax has been introduced:\n\n### slug(string, [options])\n\nIf you want a separator other than '-', pass it in as the `separator` option:\n\n```js\nslug('Kevin Spacey', { separator: ' ' })\n//-> 'kevin spacey'\n```\n\nIf you want to control which characters are stripped, pass a regex as the `toStrip` option\nthat will match the chars you want to replace, eg:\n\n```js\nslug('Mum\\'s cooking', { toStrip: /'/g })\n//-> 'mums-cooking'\n```\nRemember to use the `g` flag if you want all the matches stripped (not just the first).\n\nBy default, slugg will convert your string to lower case. If you want to disable it just\npass the `toLowerCase` option as `false`, eg:\n\n```js\nslug('Slugg rocks!', { toLowerCase: false })\n//-> 'Slugg-rocks'\n```\n","_attachments":{},"homepage":"https://github.com/bengourley/slugg#readme","bugs":{"url":"https://github.com/bengourley/slugg/issues"},"license":"BSD"}