https://github.com/maymeow/transliterator
Small javascript library for transliterate and slugify accented languages such as Slovak, Czech, and mroe
https://github.com/maymeow/transliterator
hacktoberfest
Last synced: 6 months ago
JSON representation
Small javascript library for transliterate and slugify accented languages such as Slovak, Czech, and mroe
- Host: GitHub
- URL: https://github.com/maymeow/transliterator
- Owner: MayMeow
- License: isc
- Created: 2024-01-15T14:08:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T13:39:59.000Z (almost 2 years ago)
- Last Synced: 2025-10-03T23:35:17.436Z (10 months ago)
- Topics: hacktoberfest
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Transliterate
Small transliteration library which solwing problem when you trying to create slug from accented languages like Slovak or Czech.
## Usage
Installation
```bash
# Hugo by default dont need NPM
npm init
npm i @themaymeow/transliterator
```
Use it in your own script
```javascript
const { slugify } = require('@themaymeow/transliterator/transliterator.js')
let slug = slugify("Your text");
// your-text
```
if you want to append random string suffix `v1.0.1+` you can do this as follows
```javascript
// ...
let slug = slugify("Your text", true);
// your-text-a1s223de
```