{"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","tarball":"http://registry-npm.ywwl.com/slugg/download/slugg-1.1.0.tgz","integrity":"sha512-tGBELCbr/CnyZ0Zt1nTYX2fwygwum/POxubWIGNtYdBjGBThBN1jA+TRyE7Nvo9y+lUi2fNpySruX14TK+JAAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBaBH6IHlYVWAH65V/Kfby/p6BfSG5q95gd5ecU78G5nAiEAgYFSl/PbO3qSfuFgC9+SNcVrKicvR8dIWkhYwHWzJ10="}],"size":3320,"noattachment":false,"key":"/slugg/-/slugg-1.1.0.tgz"},"maintainers":[{"name":"bengourley","email":"benleighgourley@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/slugg-1.1.0.tgz_1480514929375_0.3624058326240629"},"directories":{},"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","publish_time":1480514931209,"_cnpm_publish_time":1480514931209,"dist-tags":{"latest":"1.2.1"}}