Code-Parth/Typescript-Slugify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub package.json version

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

You can install TypeScript Slugify via npm:

npm install typescript-slugify

or

yarn add typescript-slugify
import slugify from 'typescript-slugify';

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

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

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