Skip to content

typescript-slugify is a lightweight npm package that provides a simple function for converting strings into URL-friendly slugs. Written in TypeScript, this utility offers easy integration and efficient string processing, making it ideal for web development projects.

License

Notifications You must be signed in to change notification settings

Code-Parth/Typescript-Slugify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript Slugify

GitHub package.json version

TypeScript Slugify is a lightweight npm package that provides a simple function for converting strings into URL-friendly slugs.

Installation

You can install TypeScript Slugify via npm:

npm install typescript-slugify

or

yarn add typescript-slugify

Usage

import slugify from 'typescript-slugify';

const originalString = "Hello World!";
const slug = slugify(originalString);
console.log(slug); // Output: hello-world

API

slugify(input: string): string

This function takes a string input and returns a slugified version of it, making it suitable for URLs.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

typescript-slugify is a lightweight npm package that provides a simple function for converting strings into URL-friendly slugs. Written in TypeScript, this utility offers easy integration and efficient string processing, making it ideal for web development projects.

Topics

Resources

License

Stars

Watchers

Forks