Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bradgarropy/plop-helper-slugify

A plop helper that slugifies text.
https://github.com/bradgarropy/plop-helper-slugify

helper plop plop-helper plop-pack slug slugify

Last synced: about 2 months ago
JSON representation

A plop helper that slugifies text.

Awesome Lists containing this project

README

        

## 💧 plop-helper-slugify


npm


npm

_A [plop][plop] helper that slugifies text._

### 📦 Installation

This package is installable from [npm][npm].

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

### 🥑 Usage

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

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

Once loaded, you now have access the following helpers.

#### `slugify`

Creates a slug for any input text.

**input**

```javascript
{
title: "This Is An Example Slug"
}
```

**helper**

```handlebars
{{slug title}}
```

**output**

```javascript
"this-is-an-example-slug"
```

### ❔ Questions

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

[plop]: https://plopjs.com
[npm]: https://npmjs.com
[bradgarropy]: https://bradgarropy.com
[issues]: https://github.com/bradgarropy/plop-helper-slugify/issues
[twitter]: https://twitter.com/bradgarropy
[ama]: https://github.com/bradgarropy/ama