Skip to content
Turn yer strings into slugs
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.babelrc
.gitignore
README.md
index.js
package-lock.json
package.json
rollup.config.js

README.md

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?', '_');,

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.