Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daangn/cjk-slug
URL-friendly string converter that supports CJK characters
https://github.com/daangn/cjk-slug
cjk seo url
Last synced: 5 days ago
JSON representation
URL-friendly string converter that supports CJK characters
- Host: GitHub
- URL: https://github.com/daangn/cjk-slug
- Owner: daangn
- License: mit
- Created: 2021-07-05T02:24:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-18T11:04:36.000Z (over 1 year ago)
- Last Synced: 2024-10-16T10:32:02.216Z (29 days ago)
- Topics: cjk, seo, url
- Language: TypeScript
- Homepage:
- Size: 1.02 MB
- Stars: 57
- Watchers: 20
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - cjk-slug - friendly string converter that supports CJK characters | daangn | 47 | (TypeScript)
README
# 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