Skip to content

A revived SpeakingURL with some modern ESM tech

License

Notifications You must be signed in to change notification settings

wefixers/speakingurl

 
 

Repository files navigation

SpeakingURL

A revived SpeakingURL with some modern ESM tech!

Quick Setup

# Using pnpm
pnpm i @fixers/speakingurl

# Using yarn
yarn add @fixers/speakingurl

# Using npm
npm install @fixers/speakingurl

Usage

Check the original documentation: https://github.com/pid/speakingurl

import { getSlug } from '@fixers/speakingurl'

const slug = getSlug('Schöner Titel läßt grüßen!? Bel été !')
console.log(slug) // Output: schoener-titel-laesst-gruessen-bel-ete

const slug = getSlug('Schöner Titel läßt grüßen!? Bel été !', '*')
console.log(slug) // Output: schoener*titel*laesst*gruessen*bel*ete

Create a reusable slug with options:

import { createSlug } from '@fixers/speakingurl'

const getSlut = createSlug('*')

const slug = getSlug('Schöner Titel läßt grüßen!? Bel été !')
console.log(slug) // Output: schoener*titel*laesst*gruessen*bel*ete

About

A revived SpeakingURL with some modern ESM tech

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 99.9%
  • JavaScript 0.1%