{"_id":"@sindresorhus/slugify","_rev":"4081102","name":"@sindresorhus/slugify","description":"Slugify a string","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2025-10-28T01:30:08.000Z","created":"2018-04-18T15:42:18.308Z","3.0.0":"2025-09-11T12:11:47.478Z","2.2.1":"2023-05-17T11:35:06.892Z","2.2.0":"2023-01-30T07:52:18.194Z","2.1.1":"2022-10-05T08:35:17.551Z","2.1.0":"2021-05-13T08:49:54.494Z","2.0.0":"2021-04-18T06:04:16.126Z","1.1.2":"2021-04-18T06:02:34.307Z","1.1.1":"2021-04-18T06:00:41.579Z","1.1.0":"2020-07-18T16:39:12.580Z","1.0.0":"2020-05-07T05:58:23.026Z","0.11.0":"2020-02-17T13:41:46.838Z","0.10.1":"2020-02-11T22:00:51.622Z","0.10.0":"2020-01-21T16:13:44.826Z","0.9.1":"2019-04-05T07:02:04.735Z","0.9.0":"2019-03-08T08:25:10.287Z","0.8.0":"2019-01-14T02:36:03.210Z","0.7.0":"2019-01-03T04:35:34.966Z","0.6.0":"2018-10-31T06:56:05.504Z","0.5.0":"2018-10-30T18:37:07.779Z","0.4.0":"2018-10-13T14:11:37.623Z","0.3.0":"2018-04-29T14:30:08.763Z","0.2.0":"2018-04-23T13:57:35.867Z","0.1.1":"2018-04-18T16:26:19.247Z","0.1.0":"2018-04-18T15:42:18.308Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"versions":{"3.0.0":{"name":"@sindresorhus/slugify","version":"3.0.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^2.0.0","escape-string-regexp":"^5.0.0"},"devDependencies":{"ava":"^6.4.1","xo":"^1.2.2"},"xo":{"rules":{"@typescript-eslint/member-ordering":"off"}},"_id":"@sindresorhus/slugify@3.0.0","gitHead":"7c318bd1aa4b4affab29761f15a9604323fe2a3b","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"7b3c9bb8a5454923ef693c272141a46a6a29e62d","size":5189,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/slugify_3.0.0_1757592707277_0.7747663192307319"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-11T12:11:47.478Z","publish_time":1757592707478,"_source_registry_name":"default","_cnpm_publish_time":1757592707478},"2.2.1":{"name":"@sindresorhus/slugify","version":"2.2.1","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^1.0.0","escape-string-regexp":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"xo":{"rules":{"@typescript-eslint/member-ordering":"off"}},"types":"./index.d.ts","gitHead":"d572cba97a8f661d201f4e8bdc0842bc532c9773","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@2.2.1","_nodeVersion":"20.1.0","_npmVersion":"9.2.0","dist":{"shasum":"fa2e2e25d6e1e74a2eeb5e2c37f5ccc516ed2c4b","size":4622,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-2.2.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_2.2.1_1684323306721_0.47209404243729036"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-17T11:35:06.892Z","publish_time":1684323306892,"_source_registry_name":"default","_cnpm_publish_time":1684323306892},"2.2.0":{"name":"@sindresorhus/slugify","version":"2.2.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^1.0.0","escape-string-regexp":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"xo":{"rules":{"@typescript-eslint/member-ordering":"off"}},"types":"./index.d.ts","gitHead":"753c86aa90bc749a57e72af40c141fe630b880be","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@2.2.0","_nodeVersion":"16.16.0","_npmVersion":"9.2.0","dist":{"shasum":"42738974ff19a9a306d3523a8595152998cc758e","size":4625,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-2.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_2.2.0_1675065138069_0.9119028564343898"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-30T07:52:18.194Z","publish_time":1675065138194,"_cnpm_publish_time":1675065138194},"2.1.1":{"name":"@sindresorhus/slugify","version":"2.1.1","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^1.0.0","escape-string-regexp":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"xo":{"rules":{"@typescript-eslint/member-ordering":"off"}},"types":"./index.d.ts","gitHead":"fe4d08984af1eb1e561cabf94ebee28f173590f5","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@2.1.1","_nodeVersion":"14.19.3","_npmVersion":"8.3.2","dist":{"shasum":"3076b0e95dd2cd05e5da2dd8efa38fe153a0cfe0","size":4240,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-2.1.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_2.1.1_1664958917365_0.3714946557458507"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-05T11:29:46.873Z","publish_time":1664958917551,"_cnpm_publish_time":1664958917551},"2.1.0":{"name":"@sindresorhus/slugify","version":"2.1.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^1.0.0","escape-string-regexp":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"b841d04d92533469714e586435ed4c1b3b451d8c","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@2.1.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"1e252117008cd1121e4cdea9fc67767dd1653d25","size":4127,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-2.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_2.1.0_1620895794348_0.4458801764402509"},"_hasShrinkwrap":false,"publish_time":1620895794494,"_cnpm_publish_time":1620895794494},"2.0.0":{"name":"@sindresorhus/slugify","version":"2.0.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^1.0.0","escape-string-regexp":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"b4ea95e37bc60d33d907ca173739bbbcc12f7c8e","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@2.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9ccd8f9d29b8187f5b3e33e4423abae8a82ca00c","size":3984,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-2.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_2.0.0_1618725855989_0.019679407252782166"},"_hasShrinkwrap":false,"publish_time":1618725856126,"_cnpm_publish_time":1618725856126},"1.1.2":{"name":"@sindresorhus/slugify","version":"1.1.2","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^0.1.1","escape-string-regexp":"^4.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.13.1","xo":"^0.32.1"},"gitHead":"7e889eebfe6949f8423f7bde9c217a56f5bedfbc","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@1.1.2","_nodeVersion":"12.22.1","_npmVersion":"7.5.4","dist":{"shasum":"c2c0129298b8caace2d9156176fe244d0e83156c","size":4114,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-1.1.2.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_1.1.2_1618725754142_0.5140886308920176"},"_hasShrinkwrap":false,"publish_time":1618725754307,"_cnpm_publish_time":1618725754307},"1.1.1":{"name":"@sindresorhus/slugify","version":"1.1.1","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^1.0.0","escape-string-regexp":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"83222648f8ee0f79acf6761f82f70cab5b986736","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@1.1.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5023b54c01f34f3f67f14ba7446ce8b129c7b179","size":3986,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-1.1.1.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_1.1.1_1618725641451_0.4769649928491846"},"_hasShrinkwrap":false,"publish_time":1618725641579,"_cnpm_publish_time":1618725641579},"1.1.0":{"name":"@sindresorhus/slugify","version":"1.1.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^0.1.1","escape-string-regexp":"^4.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.13.1","xo":"^0.32.1"},"gitHead":"7e889eebfe6949f8423f7bde9c217a56f5bedfbc","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@1.1.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2f195365d9b953384305b62664b44b4036c49430","size":4116,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_1.1.0_1595090352437_0.3519424175403878"},"_hasShrinkwrap":false,"publish_time":1595090352580,"_cnpm_publish_time":1595090352580},"1.0.0":{"name":"@sindresorhus/slugify","version":"1.0.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^0.1.0","escape-string-regexp":"^4.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.11.0","xo":"^0.30.0"},"gitHead":"95ab9e1cbb5ae4cc712585d5c7d179b49373388b","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"db6a4df1935cf6c331303ce82021df361ff52348","size":4080,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_1.0.0_1588831102912_0.41122040695501605"},"_hasShrinkwrap":false,"publish_time":1588831103026,"_cnpm_publish_time":1588831103026},"0.11.0":{"name":"@sindresorhus/slugify","version":"0.11.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"@sindresorhus/transliterate":"^0.1.0","escape-string-regexp":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.11.0","xo":"^0.26.1"},"gitHead":"f1acfc9f54d636bcba44b656535cef80725e2be5","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.11.0","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"642acb99adefa4187285fd17de88745afc161de8","size":3452,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.11.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.11.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.11.0_1581946906717_0.26746687575922934"},"_hasShrinkwrap":false,"publish_time":1581946906838,"_cnpm_publish_time":1581946906838},"0.10.1":{"name":"@sindresorhus/slugify","version":"0.10.1","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^2.0.0","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.11.0","xo":"^0.25.3"},"xo":{"rules":{"prefer-named-capture-group":"off"}},"gitHead":"948a82820e2640e0ea83814504f9dbfaae59bab2","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.10.1","_nodeVersion":"10.18.1","_npmVersion":"6.13.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"11599993223cb91c64f363a0b231a3e90aeff212","size":5039,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.10.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.10.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.10.1_1581458451517_0.3301911336380232"},"_hasShrinkwrap":false,"publish_time":1581458451622,"_cnpm_publish_time":1581458451622},"0.10.0":{"name":"@sindresorhus/slugify","version":"0.10.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^2.0.0","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.11.0","xo":"^0.25.3"},"xo":{"rules":{"prefer-named-capture-group":"off"}},"gitHead":"8a6758161d9b1a93eacb90175cc8759d5d8c1609","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.10.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8878609a6a468a110690abbfb65171769cd9a8d4","size":4800,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.10.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.10.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.10.0_1579623224607_0.07137942352266724"},"_hasShrinkwrap":false,"publish_time":1579623224826,"_cnpm_publish_time":1579623224826},"0.9.1":{"name":"@sindresorhus/slugify","version":"0.9.1","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^1.0.5","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"12b58bb3a8aa43364107cbeb894a5c2b70e9587a","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.9.1","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"892ad24d70b442c0a14fe519cb4019d59bc5069f","size":4664,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.9.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.9.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.9.1_1554447724598_0.220335061616574"},"_hasShrinkwrap":false,"publish_time":1554447724735,"_cnpm_publish_time":1554447724735},"0.9.0":{"name":"@sindresorhus/slugify","version":"0.9.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^1.0.5","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"^1.3.1","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"77505087d4fa415c0cd152d63ac56acf1289d1f7","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.9.0","_nodeVersion":"8.15.0","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"58a85bea6c93a4634b143eafd0a78c41a5eaa7da","size":4541,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.9.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.9.0_1552033510188_0.3001580073290051"},"_hasShrinkwrap":false,"publish_time":1552033510287,"_cnpm_publish_time":1552033510287},"0.8.0":{"name":"@sindresorhus/slugify","version":"0.8.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^1.0.5","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"^0.25.0","xo":"^0.23.0"},"gitHead":"14ddcb5ebf85f40f7fcf777f5b988424f244b6c9","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.8.0","_npmVersion":"6.5.0","_nodeVersion":"10.13.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5550b7fa064f3a8a82651463ad635378054c72d0","size":4154,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.8.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.8.0_1547433363034_0.8211929542452192"},"_hasShrinkwrap":false,"publish_time":1547433363210,"_cnpm_publish_time":1547433363210},"0.7.0":{"name":"@sindresorhus/slugify","version":"0.7.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^1.0.5","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"^0.25.0","xo":"^0.23.0"},"gitHead":"327eb273bfc6be19fdff971714808066b4f66651","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.7.0","_npmVersion":"6.5.0","_nodeVersion":"10.13.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9a3a227b1b5c2cc8df06380cd657783c1887a3a9","size":3947,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.7.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.7.0_1546490134778_0.4964646312385761"},"_hasShrinkwrap":false,"publish_time":1546490134966,"_cnpm_publish_time":1546490134966},"0.6.0":{"name":"@sindresorhus/slugify","version":"0.6.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^1.0.5","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"^0.25.0","xo":"^0.23.0"},"gitHead":"e7af6679d654df029f9440296b4f971d9c431b02","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.6.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"21ea00f4abf43d13a4c39c8174f241ff9b5d12bc","size":3904,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.6.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.6.0_1540968965335_0.5936729613551672"},"_hasShrinkwrap":false,"publish_time":1540968965504,"_cnpm_publish_time":1540968965504},"0.5.0":{"name":"@sindresorhus/slugify","version":"0.5.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^1.0.5","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"^0.25.0","xo":"^0.23.0"},"gitHead":"5bdaa1c73aa3e664c56f337f741bab6c0c8e6bf6","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.5.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3ead66ba1b710c371c996adc20608728cfb3a45b","size":2467,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.5.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.5.0_1540924627647_0.4610344318847266"},"_hasShrinkwrap":false,"publish_time":1540924627779,"_cnpm_publish_time":1540924627779},"0.4.0":{"name":"@sindresorhus/slugify","version":"0.4.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^1.0.5","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"59dce07fd33fe60efe1ad821bb3b57afbf40d79f","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.4.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3afe0f74570de515e9d7fd2fa3dcc386c2cb3a35","size":2250,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.4.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.4.0_1539439897524_0.10123273908536956"},"_hasShrinkwrap":false,"publish_time":1539439897623,"_cnpm_publish_time":1539439897623},"0.3.0":{"name":"@sindresorhus/slugify","version":"0.3.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^1.0.5","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"96ddd5fd5bfc80f5f902cc9bd0b24cb61e9c279f","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.3.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"39ec81f542b4fcaf7f67fbc8916efa990b65e139","size":2260,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.3.0_1525012208664_0.9227989425769616"},"_hasShrinkwrap":false,"publish_time":1525012208763,"_cnpm_publish_time":1525012208763},"0.2.0":{"name":"@sindresorhus/slugify","version":"0.2.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"escape-string-regexp":"^1.0.5","lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"5b42e0427c7627dfccfeab0769e104df549efdcf","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"fc293151d5ba76089df18ab17f41d4ddf2eacad7","size":2071,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.2.0_1524491855793_0.6651268662633676"},"_hasShrinkwrap":false,"publish_time":1524491855867,"_cnpm_publish_time":1524491855867},"0.1.1":{"name":"@sindresorhus/slugify","version":"0.1.1","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"09c3c04fa9f97d57724e45aa417d45dabc682034","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6027bb9ddefcf5ffe1c8ade6937d6f86f3e57159","size":1771,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.1.1_1524068779189_0.9978731868902766"},"_hasShrinkwrap":false,"publish_time":1524068779247,"_cnpm_publish_time":1524068779247},"0.1.0":{"name":"@sindresorhus/slugify","version":"0.1.0","description":"Slugify a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slugify.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["string","slugify","slug","url","url-safe","urlify","transliterate","transliteration","deburr","unicode","ascii","text","decamelize","pretty","clean","filename","id"],"dependencies":{"lodash.deburr":"^4.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"eb70ec2a3de2bbdb078adcfa1778e059d95d91ef","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"homepage":"https://github.com/sindresorhus/slugify#readme","_id":"@sindresorhus/slugify@0.1.0","_npmVersion":"5.8.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4a652e2823990147c99097792447c5d6a15e89c3","size":1745,"noattachment":false,"key":"/@sindresorhus/slugify/-/@sindresorhus/slugify-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@sindresorhus/slugify/download/@sindresorhus/slugify-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slugify_0.1.0_1524066138222_0.1255795434471103"},"_hasShrinkwrap":false,"publish_time":1524066138308,"_cnpm_publish_time":1524066138308}},"readme":"# slugify\n\n> Slugify a string\n\nUseful for URLs, filenames, and IDs.\n\nIt handles most major languages, including [German (umlauts)](https://en.wikipedia.org/wiki/Germanic_umlaut), Vietnamese, Arabic, Russian, [and more](https://github.com/sindresorhus/transliterate#supported-languages).\n\n## Install\n\n```sh\nnpm install @sindresorhus/slugify\n```\n\n## Usage\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('I ♥ Dogs');\n//=> 'i-love-dogs'\n\nslugify('  Déjà Vu!  ');\n//=> 'deja-vu'\n\nslugify('fooBar 123 $#%');\n//=> 'foo-bar-123'\n\nslugify('я люблю единорогов');\n//=> 'ya-lyublyu-edinorogov'\n```\n\n## API\n\n### slugify(string, options?)\n\n#### string\n\nType: `string`\n\nString to slugify.\n\n#### options\n\nType: `object`\n\n##### separator\n\nType: `string`\\\nDefault: `'-'`\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('BAR and baz');\n//=> 'bar-and-baz'\n\nslugify('BAR and baz', {separator: '_'});\n//=> 'bar_and_baz'\n\nslugify('BAR and baz', {separator: ''});\n//=> 'barandbaz'\n```\n\n##### lowercase\n\nType: `boolean`\\\nDefault: `true`\n\nMake the slug lowercase.\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('Déjà Vu!');\n//=> 'deja-vu'\n\nslugify('Déjà Vu!', {lowercase: false});\n//=> 'Deja-Vu'\n```\n\n##### decamelize\n\nType: `boolean`\\\nDefault: `true`\n\nConvert camelcase to separate words. Internally it does `fooBar` → `foo bar`.\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('fooBar');\n//=> 'foo-bar'\n\nslugify('fooBar', {decamelize: false});\n//=> 'foobar'\n```\n\n##### customReplacements\n\nType: `Array<string[]>`\\\nDefault: `[\n\t['&', ' and '],\n\t['????', ' unicorn '],\n\t['♥', ' love ']\n]`\n\nAdd your own custom replacements.\n\nThe replacements are run on the original string before any other transformations.\n\nThis only overrides a default replacement if you set an item with the same key, like `&`.\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('Foo@unicorn', {\n\tcustomReplacements: [\n\t\t['@', 'at']\n\t]\n});\n//=> 'fooatunicorn'\n```\n\nAdd a leading and trailing space to the replacement to have it separated by dashes:\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('foo@unicorn', {\n\tcustomReplacements: [\n\t\t['@', ' at ']\n\t]\n});\n//=> 'foo-at-unicorn'\n```\n\nAnother example:\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('I love ????', {\n\tcustomReplacements: [\n\t\t['????', 'dogs']\n\t]\n});\n//=> 'i-love-dogs'\n```\n\n##### preserveLeadingUnderscore\n\nType: `boolean`\\\nDefault: `false`\n\nIf your string starts with an underscore, it will be preserved in the slugified string.\n\nSometimes leading underscores are intentional, for example, filenames representing hidden paths on a website.\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('_foo_bar');\n//=> 'foo-bar'\n\nslugify('_foo_bar', {preserveLeadingUnderscore: true});\n//=> '_foo-bar'\n```\n\n##### preserveTrailingDash\n\nType: `boolean`\\\nDefault: `false`\n\nIf your string ends with a dash, it will be preserved in the slugified string.\n\nFor example, using slugify on an input field would allow for validation while not preventing the user from writing a slug.\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('foo-bar-');\n//=> 'foo-bar'\n\nslugify('foo-bar-', {preserveTrailingDash: true});\n//=> 'foo-bar-'\n```\n\n##### preserveCharacters\n\nType: `string[]`\\\nDefault: `[]`\n\nPreserve certain characters.\n\nIt cannot contain the `separator`.\n\nFor example, if you want to slugify URLs, but preserve the HTML fragment `#` character.\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('foo_bar#baz', {preserveCharacters: ['#']});\n//=> 'foo-bar#baz'\n```\n\n##### locale\n\nType: `string`\\\nDefault: `undefined`\n\nThe locale to use for language-specific transliteration.\n\nSee the [`@sindresorhus/transliterate` package](https://github.com/sindresorhus/transliterate#locale) for more info.\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('Räksmörgås');\n//=> 'raeksmoergas'\n\nslugify('Räksmörgås', {locale: 'sv'});\n//=> 'raksmorgas'\n```\n\n##### transliterate\n\nType: `boolean`\\\nDefault: `true`\n\nWhether to transliterate Unicode characters to ASCII.\n\nWhen `false`, non-ASCII characters will be preserved instead of being transliterated. This can improve performance when you don't need transliteration.\n\n```js\nimport slugify from '@sindresorhus/slugify';\n\nslugify('Déjà Vu');\n//=> 'deja-vu'\n\nslugify('Déjà Vu', {transliterate: false});\n//=> 'déjà-vu'\n```\n\n### slugifyWithCounter()\n\nReturns a new instance of `slugify(string, options?)` with a counter to handle multiple occurrences of the same string.\n\n#### Example\n\n```js\nimport {slugifyWithCounter} from '@sindresorhus/slugify';\n\nconst slugify = slugifyWithCounter();\n\nslugify('foo bar');\n//=> 'foo-bar'\n\nslugify('foo bar');\n//=> 'foo-bar-2'\n\nslugify.reset();\n\nslugify('foo bar');\n//=> 'foo-bar'\n```\n\n#### Use-case example of counter\n\nIf, for example, you have a document with multiple sections where each subsection has an example.\n\n```md\n## Section 1\n\n### Example\n\n## Section 2\n\n### Example\n```\n\nYou can then use `slugifyWithCounter()` to generate unique HTML `id`'s to ensure anchors will link to the right headline.\n\n### slugify.reset()\n\nReset the counter\n\n#### Example\n\n```js\nimport {slugifyWithCounter} from '@sindresorhus/slugify';\n\nconst slugify = slugifyWithCounter();\n\nslugify('foo bar');\n//=> 'foo-bar'\n\nslugify('foo bar');\n//=> 'foo-bar-2'\n\nslugify.reset();\n\nslugify('foo bar');\n//=> 'foo-bar'\n```\n\n## Related\n\n- [slugify-cli](https://github.com/sindresorhus/slugify-cli) - CLI for this module\n- [transliterate](https://github.com/sindresorhus/transliterate) - Convert Unicode characters to Latin characters using transliteration\n- [filenamify](https://github.com/sindresorhus/filenamify) - Convert a string to a valid safe filename\n","_attachments":{},"homepage":"https://github.com/sindresorhus/slugify#readme","bugs":{"url":"https://github.com/sindresorhus/slugify/issues"},"license":"MIT"}