slug-gen
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Slug Generator

Zero dependency slug generator for the browser and Node.js with unicode support.

Build Status npm npm bundle size NPM

The library is written in TypeScript and provides typings, no need to install them separately.

Usage

import { slug } from "slug-gen";
 
console.log(slug("ĀāĂ ă Ą ą Ć ć Ĉ ĉ ĊċČčĎ"));
// -> aaa-a-a-a-c-c-c-c-ccccd

Current unicode support

Block range Block name
U+0000..U+007F Basic Latin
U+0080..U+00FF Latin-1 Supplement
U+0100..U+017F Latin Extended-A
U+0180..U+024F Latin Extended-B
U+0370..U+03FF Greek and Coptic
U+0400..U+04FF Cyrillic
U+0500..U+052F Cyrillic Supplement

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.042latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.042
0.2.10
0.2.01
0.1.00

Package Sidebar

Install

npm i slug-gen

Weekly Downloads

39

Version

1.0.0

License

MIT

Unpacked Size

23.3 kB

Total Files

15

Last publish

Collaborators

  • vidandev