Home

Awesome

💧 plop-helper-slugify

<a href="https://npmjs.com/package/plop-helper-slugify"> <img alt="npm" src="https://img.shields.io/npm/v/plop-helper-slugify.svg?style=flat-square"> </a> <a href="https://npmjs.com/package/plop-helper-slugify"> <img alt="npm" src="https://img.shields.io/npm/dt/plop-helper-slugify?style=flat-square"> </a>

A plop helper that slugifies text.

📦 Installation

This package is installable from npm.

npm install --save-dev plop-helper-slugify

🥑 Usage

Before you can use the plop-pack, you have to load it into the plop object.

plop.load("plop-helper-slugify")

Once loaded, you now have access the following helpers.

slugify

Creates a slug for any input text.

input

{
    title: "This Is An Example Slug"
}

helper

{{slug title}}

output

"this-is-an-example-slug"

❔ Questions

🐛 report bugs by filing issues
📢 provide feedback with issues or on twitter
🙋🏼‍♂️ use my ama or twitter to ask any other questions