{"_id":"@justrelate/slugify","_rev":"2-371ae880b02d4f5a3f9dd8c0b11f3c2b","name":"@justrelate/slugify","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@justrelate/slugify","version":"1.0.0","keywords":["slug","transliteration","unicode","iso","multiscript"],"license":"MIT","_id":"@justrelate/slugify@1.0.0","maintainers":[{"name":"dcsaszar","email":"david.csaszar+npm@infopark.de"},{"name":"jr-anne","email":"sysadmin+npm-jr@justrelate.com"},{"name":"anne-schulz","email":"anne.schulz@justrelate.com"},{"name":"kostia-newt","email":"kostiantyn.kahanskyi@gmail.com"},{"name":"phorsuedzie","email":"kai-uwe.humpert@infopark.de"},{"name":"patrykboch","email":"patrykboch@gmail.com"},{"name":"apepper","email":"alexander.pepper@justrelate.com"},{"name":"kr1shan","email":"kris.hanekamp+npm@gmail.com"}],"homepage":"https://github.com/JustRelate/slugify#readme","bugs":{"url":"https://github.com/JustRelate/slugify/issues"},"dist":{"shasum":"99665f6a14fe34580056fca131077cb5c01ba5d1","tarball":"https://registry.npmjs.org/@justrelate/slugify/-/slugify-1.0.0.tgz","fileCount":7,"integrity":"sha512-yghikEwRlS9AUr0FaGoGmtzJRAXuRoMSAQ3dlYqVAyE9t06Zu/gpyRCG6KvDJd2083qjrcklzF/D6ZkFed92Mg==","signatures":[{"sig":"MEQCICTKDyb2Mc1xrRBsuop0GGY/CemPPtMVpMzhA2T/EoxtAiBGMhmulSq8ASqPsMknyvl2Ov3u277vGfGL4byIvvIUYA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8227},"jest":{"preset":"ts-jest/presets/default-esm"},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"288522a045a7f97d908ececbc5996e9415fff567","scripts":{"lint":"eslint","test":"jest","build":"rm -rf dist && tsc","check":"prettier --check .","prepare":"npm run build"},"_npmUser":{"name":"dcsaszar","email":"david.csaszar+npm@infopark.de"},"prettier":{},"repository":{"url":"git+https://github.com/JustRelate/slugify.git","type":"git"},"_npmVersion":"11.4.1","description":"Slugifier with multi-alphabet transliteration based on ISO and Unicode standards","directories":{},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"ts-jest":"^29.4.1","prettier":"^3.6.2","@types/jest":"^30.0.0","typescript-eslint":"^8.39.1","eslint-plugin-redos":"^4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/slugify_1.0.0_1755629609055_0.7749573747287901","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"bugs":{"url":"https://github.com/JustRelate/slugify/issues"},"description":"Slugifier with multi-alphabet transliteration based on ISO and Unicode standards","devDependencies":{"@types/jest":"^30.0.0","eslint-plugin-redos":"^4.5.0","prettier":"^3.6.2","ts-jest":"^29.4.1","typescript-eslint":"^8.39.1"},"homepage":"https://github.com/JustRelate/slugify#readme","jest":{"preset":"ts-jest/presets/default-esm"},"keywords":["slug","transliteration","unicode","iso","multiscript"],"license":"MIT","main":"./dist/index.cjs","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/index.d.ts"}},"name":"@justrelate/slugify","prettier":{},"repository":{"type":"git","url":"git+https://github.com/JustRelate/slugify.git"},"scripts":{"build":"rm -rf dist && tsc --module commonjs && mv dist/index.js dist/index.cjs && tsc --declaration --sourcemap","check":"prettier --check .","lint":"eslint","prepublishOnly":"npm run build","test":"jest"},"type":"module","types":"./dist/index.d.ts","version":"1.0.1","_id":"@justrelate/slugify@1.0.1","gitHead":"106f7ab57e6138cf5e81f7fd6832362daa3bcf6e","_nodeVersion":"24.8.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-dDumFGut2mqxI/A50cpoDQ509HEETF+Zj6l4LqJHNiUYsiT6mZeXsZlOFvh9m5gk29QfvO0YSpqUYhaBzSiGcw==","shasum":"bcf3112b62ac76e0038f1ba9e65f8d520862d0d5","tarball":"https://registry.npmjs.org/@justrelate/slugify/-/slugify-1.0.1.tgz","fileCount":7,"unpackedSize":10467,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC7+QDRBaxKeuB/pLZEhIN/dAaarXkzwKaiy/1gJ6A5BgIhAJaF27de8VL4uELA5uMAVnL9BEpg0EaUDlmJtxBpiLm1"}]},"_npmUser":{"name":"dcsaszar","email":"david.csaszar+npm@infopark.de"},"directories":{},"maintainers":[{"name":"dcsaszar","email":"david.csaszar+npm@infopark.de"},{"name":"jr-anne","email":"sysadmin+npm-jr@justrelate.com"},{"name":"anne-schulz","email":"anne.schulz@justrelate.com"},{"name":"kostia-newt","email":"kostiantyn.kahanskyi@gmail.com"},{"name":"phorsuedzie","email":"kai-uwe.humpert@infopark.de"},{"name":"patrykboch","email":"patrykboch@gmail.com"},{"name":"apepper","email":"alexander.pepper@justrelate.com"},{"name":"kr1shan","email":"kris.hanekamp+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/slugify_1.0.1_1758288597250_0.30380072841415906"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-19T18:53:28.949Z","modified":"2025-09-19T13:29:58.024Z","1.0.0":"2025-08-19T18:53:29.292Z","1.0.1":"2025-09-19T13:29:57.425Z"},"bugs":{"url":"https://github.com/JustRelate/slugify/issues"},"license":"MIT","homepage":"https://github.com/JustRelate/slugify#readme","keywords":["slug","transliteration","unicode","iso","multiscript"],"repository":{"type":"git","url":"git+https://github.com/JustRelate/slugify.git"},"description":"Slugifier with multi-alphabet transliteration based on ISO and Unicode standards","maintainers":[{"name":"dcsaszar","email":"david.csaszar+npm@infopark.de"},{"name":"jr-anne","email":"sysadmin+npm-jr@justrelate.com"},{"name":"anne-schulz","email":"anne.schulz@justrelate.com"},{"name":"kostia-newt","email":"kostiantyn.kahanskyi@gmail.com"},{"name":"phorsuedzie","email":"kai-uwe.humpert@infopark.de"},{"name":"patrykboch","email":"patrykboch@gmail.com"},{"name":"apepper","email":"alexander.pepper@justrelate.com"},{"name":"kr1shan","email":"kris.hanekamp+npm@gmail.com"}],"readme":"# JustRelate Slugify\n\nSlugifier with multi-alphabet transliteration (Latin, Greek, Cyrillic, Armenian, Arabic, Georgian, etc.) based on ISO and Unicode standards.\nSmall, fast, and dependency-free — powered by ECMAScript `Intl.Collator`.\n\n## Installation\n\n```sh\nnpm install @justrelate/slugify\n```\n\n## Usage\n\n```ts\nimport { slugify } from \"@justrelate/slugify\";\n\nslugify(\"Äpfel & Öl\"); // 'aepfel-oel'\nslugify(\"Καλημέρα\"); // 'kalimera'\nslugify(\"Привет\"); // 'privet'\nslugify(\"مرحبا\"); // 'mrhba'\n```\n\n## Features\n\n- **Multi-script transliteration** — Latin (with diacritics), Greek, Cyrillic, Armenian, Arabic, Georgian, enclosed alphanumerics.\n- **Standards-based** — ISO transliteration rules where applicable; Unicode collation for consistent matching.\n- **Locale-aware lookup** — Uses ECMAScript `Intl.Collator` for proper mapping.\n- **Lightweight** — No large Unicode tables or external dependencies.\n\n## API\n\n### `slugify(input: string): string`\n\nReturns a lowercase, hyphen-separated slug version of the input string.\nNon-mapped characters are replaced with `-` and consecutive dashes are collapsed.\n\n## Supported scripts\n\n- Latin (including German ä → ae, ß → ss, ligatures, diacritics, and fullwidth forms)\n- Greek (ISO 843)\n- Cyrillic (ISO/R 9, GOST 7.79-2000)\n- Armenian (BGN/PCGN, ISO 9985 for ւ)\n- Arabic (UNGEGN)\n- Georgian (ISO 9984:2025)\n- Enclosed alphanumerics (① → 1, ⓪ → 0, ⓐ → a, fullwidth numbers/letters)\n- Roman numerals (Ⅰ → i, Ⅳ → iv, etc.)\n- Western Arabic numerals and superscript/subscript forms (²³¹ → 231, ₐ → a)\n\n## License\n\nMIT © [JustRelate Group GmbH](https://www.justrelate.com)\n","readmeFilename":"README.md"}