Socket
Socket
Sign inDemoInstall

slug.js

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    slug.js

Node.js package for slug string


Version published
Weekly downloads
10
increased by66.67%
Maintainers
1
Install size
20.5 kB
Created
Weekly downloads
 

Readme

Source

slug.js

Node.js package for slug string.

Prerequisites

  • Node.js

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

Keywords

FAQs

Last updated on 12 Jul 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc