{"name":"slugify","version":"1.3.4","description":"Slugifies a String","keywords":["slugify","slug","url","urlify"],"license":"MIT","homepage":"https://github.com/simov/slugify","author":{"name":"Simeon Velichkov","email":"simeonvelichkov@gmail.com","url":"https://simov.github.io"},"repository":{"type":"git","url":"git+https://github.com/simov/slugify.git"},"devDependencies":{"coveralls":"^3.0.1","eslint":"^4.19.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.7.0","eslint-plugin-standard":"^3.0.1","istanbul":"^0.4.5","mocha":"^5.1.1"},"main":"./index.js","types":"index.d.ts","scripts":{"lint":"eslint index.js test.js && echo Lint Passed","test":"npm run lint && npm run test:ci && echo Tests Passed","test:ci":"mocha","test:cov":"istanbul cover _mocha"},"engines":{"node":">=4.0.0"},"gitHead":"9bc9c9b46611bc6d9b2933df304c64c0e04f9986","bugs":{"url":"https://github.com/simov/slugify/issues"},"_id":"slugify@1.3.4","_npmVersion":"6.4.1","_nodeVersion":"8.11.2","_npmUser":{"name":"simov","email":"simeonvelichkov@gmail.com"},"dist":{"integrity":"sha512-KP0ZYk5hJNBS8/eIjGkFDCzGQIoZ1mnfQRYS5WM3273z+fxGWXeN0fkwf2ebEweydv9tioZIHGZKoF21U07/nw==","shasum":"78d2792d7222b55cd9fc81fa018df99af779efeb","tarball":"http://registry-npm.ywwl.com/slugify/download/slugify-1.3.4.tgz","fileCount":5,"unpackedSize":11462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCW0gCRA9TVsSAnZWagAA2kQP/R6wDCFEwp5wJiP4SLmO\ntXkQJU1nqIB47AqfpCj6RqP6MkVI0i5WJ4zjrV+GAeV4SYHlYCTeRyljaF60\nsPkDi1RlG2SGuJRhTLqLnyENkClAvOU0lk0AqEmjySeP+84Yhhe/u65qTVej\naTUmcvw2ArI34vbNmzr8qSN6D+L9oKmwB/q9/9ReEQ6Sr0QKkSmmOgeZ8KbU\ngUfn9noshf8ZgfkLNgS0wPUXqPsXoPPkR2q3oJWh2Dlk2VMqfrzjF8rv0Um5\nmiOUp0cR+QO8VWzfQxHLvZx+T8k83C+tULg6o3Mg2ddr+9NuT0b+aYx+9yE0\nYHp2ed5UBSBCZHyRajpRQ9RITTynSiFFaOfEi4pWyFT6ujHbldwvNgIBrq5B\n+3bL9YXOT9XCNcsHKihUzztx7oKPiV1URW+/+D6T0/nn3ZYmJK6pK8IzSdJb\nydKvUsiY9+ROiajkV9HccR4N6SUSbnOEcJkl2p5FOAjhDEqD+fjXqQQWv0SG\n93OmzBhkuUWcpDvzGgjsNCFEkNdRj2Oal7U7FX1kdGofasudMdjayplyL+mJ\noehp1Qj7K97PixDhTZUBb2n67VPhMtaYhEwyFfTvkSpIGJV6dCNjYTRW/evo\nIyIwUHOImaEktWiemRjNBh1rILrl6B2bqzx7eCCVokM6APyVZb2ZMPQ/2ZX0\nFl5Q\r\n=48wV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWmRDiMCwHzWoeBl1IkWUeOZ7DouHk264W1FJs5kT/nwIgdt5vkwkNzJjSFNeCQ9zi8Qm8fu3F1VIxXcoznuL3lyo="}],"size":5316,"noattachment":false,"key":"/slugify/-/slugify-1.3.4.tgz"},"maintainers":[{"name":"simov","email":"simeonvelichkov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_1.3.4_1544121632137_0.6717098003788067"},"_hasShrinkwrap":false,"readme":"\n# slugify\n\n[![npm-version]][npm] [![coveralls-status]][coveralls]\n\n```js\nvar slugify = require('slugify')\n\nslugify('some string') // some-string\n\n// if you prefer something other than '-' as separator\nslugify('some string', '_')  // some_string\n```\n\n- Vanilla ES2015 JavaScript\n    - If you need to use Slugify with older browsers, consider using [version 1.4.7](https://github.com/simov/slugify/releases/tag/v1.4.7)\n- No dependencies\n- Coerces foreign symbols to their English equivalent (check out the [charMap][charmap] for more details)\n- Works in the browser (window.slugify) and AMD/CommonJS-flavored module loaders\n\n## Options\n\n```js\nslugify('some string', {\n  replacement: '-',  // replace spaces with replacement character, defaults to `-`\n  remove: undefined, // remove characters that match regex, defaults to `undefined`\n  lower: false,      // convert to lower case, defaults to `false`\n  strict: false,     // strip special characters except replacement, defaults to `false`\n  locale: 'vi',      // language code of the locale to use\n  trim: true         // trim leading and trailing replacement chars, defaults to `true`\n})\n```\n\n## Remove\n\nFor example, to remove `*+~.()'\"!:@` from the result slug, you can use `slugify('..', {remove: /[*+~.()'\"!:@]/g})`.\n\n* If the value of `remove` is a regular expression, it should be a\n  [character class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes)\n  and only a character class. It should also use the\n  [global flag](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global).\n  (For example: `/[*+~.()'\"!:@]/g`.) Otherwise, the `remove` option might not\n  work as expected.\n* If the value of `remove` is a string, it should be a single character.\n  Otherwise, the `remove` option might not work as expected.\n\n## Locales\n\nThe main `charmap.json` file contains all known characters and their transliteration. All new characters should be added there first. In case you stumble upon a character already set in `charmap.json`, but not transliterated correctly according to your language, then you have to add those characters in `locales.json` to override the already existing transliteration in `charmap.json`, but for your locale only.\n\nYou can get the correct language code of your language from [here](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).\n\n## Extend\n\nOut of the box `slugify` comes with support for a handful of Unicode symbols. For example the `☢` (radioactive) symbol is not defined in the [`charMap`][charmap] and therefore it will be stripped by default:\n\n```js\nslugify('unicode ♥ is ☢') // unicode-love-is\n```\n\nHowever you can extend the supported symbols, or override the existing ones with your own:\n\n```js\nslugify.extend({'☢': 'radioactive'})\nslugify('unicode ♥ is ☢') // unicode-love-is-radioactive\n```\n\nKeep in mind that the `extend` method extends/overrides the default `charMap` for the entire process. In case you need a fresh instance of the slugify's `charMap` object you have to clean up the module cache first:\n\n```js\ndelete require.cache[require.resolve('slugify')]\nvar slugify = require('slugify')\n```\n\n## Contribute\n\n1. Add chars to `charmap.json`\n2. Run tests `npm test`\n3. The tests will build the charmap in `index.js` and will sort the `charmap.json`\n4. Commit **all** modified files\n\n---\n\n> Originally this was a vanilla javascript port of [node-slug][node-slug].<br>\n> Note that the original [slug][slug] module has been ported to vanilla javascript too.\n\n\n  [npm-version]: https://img.shields.io/npm/v/slugify.svg?style=flat-square (NPM Package Version)\n  [coveralls-status]: https://img.shields.io/coveralls/simov/slugify.svg?style=flat-square (Test Coverage - Coveralls)\n\n  [npm]: https://www.npmjs.com/package/slugify\n  [coveralls]: https://coveralls.io/r/simov/slugify?branch=master\n\n  [node-slug]: https://github.com/dodo/node-slug\n  [slug]: https://www.npmjs.com/package/slug\n  [unicode]: https://www.npmjs.com/package/unicode\n  [index]: https://github.com/simov/slugify/blob/master/index.js\n  [charmap]: https://github.com/simov/slugify/blob/master/config/charmap.json\n","publish_time":1544121632320,"_cnpm_publish_time":1544121632320,"dist-tags":{"latest":"1.6.9"}}