Socket
Socket
Sign inDemoInstall

slug-off

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slug-off

Turn strings into slugs, eh?


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Slug off

A tiny and probably useless set of helper functions to turn your strings into slugs, because, laziness.

Uses Rollup and Babel to transpile JS. It even has Babel?! Yes, I know. See the first line for the reason.

Usage

So, for some reason you want to use this module?

First in your terminal, cd into your project and run:

npm install slug-off

Now import it into your file:

import slugOff from 'slug-off';

You can now run slugOff('my Awesome line oF t3xt Bruh'). The slugOff function takes two parameters: string, separator. If you're a monster and want to use underscores for your slugs you can run slugOff('why would I do this?', '_');,

FAQs

Package last updated on 28 Apr 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc