xxgicoxx / slug.js

Node.js package for slug string.

Home Page:https://www.npmjs.com/package/slug.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slug.js

Node.js package for slug string.

Features

  • Slug string
  • Slug array

Prerequisites

Installation

npm install slug.js

Example

const Slug = require('slug.js');

const slug = new Slug();

(async () => {
  try {
    const slugify = await slug.slugify('asd 123 &@# abc');
    console.log(slugify);

    const slugifyArray = await slug.slugifyArray(['asdas @!# 123', '123 456 789 ABC DEF GHI']);
    console.log(slugifyArray);
  } catch (error) {
    console.error(error);
  }
})();

Built With

Authors

Acknowledgments

About

Node.js package for slug string.

https://www.npmjs.com/package/slug.js

License:MIT License


Languages

Language:JavaScript 100.0%