{"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","tarball":"http://registry-npm.ywwl.com/slugg/download/slugg-1.2.1.tgz","integrity":"sha512-yzUY7d53sdY3wp6rGCc54fn+cel0aNsdG5lvRVN8bvlAXYQI2fIo36AAOVjArOaMzlidHYyAYqriHzuos93h+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuSmOEDX/GCWJZPLGHXXBHI4rCRoE6+FWjG0qw350YwgIhAKyKvm1tZ/aXKrzEPTqHyUQPPoM3CWDaOldCgKt81v2w"}],"size":3405,"noattachment":false,"key":"/slugg/-/slugg-1.2.1.tgz"},"maintainers":[{"name":"bengourley","email":"benleighgourley@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugg-1.2.1.tgz_1496220489772_0.430999101838097"},"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":1496220490774,"_cnpm_publish_time":1496220490774,"dist-tags":{"latest":"1.2.1"}}