@amigo-labs/slugify
v0.1.2
Published
Blazing fast slugify powered by Rust
Maintainers
Readme
@amigo-labs/slugify
Blazing fast slugify powered by Rust via NAPI-RS. Converts any string into a URL-friendly slug with Unicode support.
Installation
npm install @amigo-labs/slugifyUsage
import { slugify, slugifyWithSeparator } from "@amigo-labs/slugify";
slugify("Hello World!"); // "hello-world"
slugify("Schöne Grüße"); // "schone-grusse"
slugify("日本語テスト"); // "ri-ben-yu-tesuto"
// With custom separator
slugifyWithSeparator("Hello World!", "_"); // "hello_world"API
slugify(input): string
Converts a string into a URL-friendly slug using - as separator.
slugifyWithSeparator(input, separator): string
Converts a string into a URL-friendly slug using a custom separator.
Supported Platforms
| Platform | Architecture | | --- | --- | | Linux | x64 (glibc), x64 (musl), arm64 | | macOS | x64, arm64 | | Windows | x64 |
License
MIT
