UNPKG

cjk-slug

Version:

[![Package Version](https://img.shields.io/npm/v/cjk-slug)](https://npm.im/cjk-slug) [![License](https://img.shields.io/npm/l/cjk-slug)](#License) [![NPM Bundle Size](https://img.shields.io/bundlephobia/minzip/cjk-slug)](https://bundlephobia.com/package/c

27 lines (16 loc) 699 B
# cjk-slug [![Package Version](https://img.shields.io/npm/v/cjk-slug)](https://npm.im/cjk-slug) [![License](https://img.shields.io/npm/l/cjk-slug)](#License) [![NPM Bundle Size](https://img.shields.io/bundlephobia/minzip/cjk-slug)](https://bundlephobia.com/package/cjk-slug) URL-friendly string converter that supports CJK characters ## Usage ```js import slugify from 'cjk-slug'; slugify('당근마켓 - 대한민국 1등 동네 커뮤니티'); // => 당근마켓-대한민국-1등-동네-커뮤니티 ``` ## Other languages This package only cares about CJK characters. You can use [`@sindresorhus/transliterate`](https://github.com/sindresorhus/transliterate) as needed. ## License MIT