Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradgarropy/plop-pack-helpers
Collection of plop utility helpers to make your life easier.
https://github.com/bradgarropy/plop-pack-helpers
helper plop plop-helper plop-pack
Last synced: about 1 month ago
JSON representation
Collection of plop utility helpers to make your life easier.
- Host: GitHub
- URL: https://github.com/bradgarropy/plop-pack-helpers
- Owner: bradgarropy
- License: mit
- Created: 2020-07-08T03:40:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-27T02:22:01.000Z (almost 3 years ago)
- Last Synced: 2024-10-13T04:38:57.045Z (2 months ago)
- Topics: helper, plop, plop-helper, plop-pack
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@bradgarropy/plop-pack-helpers
- Size: 144 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
## 💧 plop-pack-helpers
_A collection of [plop][plop] helpers to make your life easier._
### 📦 Installation
This package is installable from [npm][npm].
```bash
npm install --save-dev @bradgarropy/plop-pack-helpers
```### 🥑 Usage
Before you can use the `plop-pack`, you have to load it into the `plop` object.
```javascript
plop.load("@bradgarropy/plop-pack-helpers")
```Once loaded, you now have access the following helpers.
#### `slug`
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"
```#### `date`
Creates a formatted date.
**input**
```json
{}
```**helper**
```handlebars
{{date}}
```**output**
```javascript
"2020-07-10"
```#### `list`
Cleans up a comma separated list of values.
**input**
```javascript
{
tags: "one, two, three, four , five "
}
```**helper**
```handlebars
{{list tags}}
```**output**
```javascript
"one, two, three, four, five"
```### ❔ 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-pack-helpers/issues
[twitter]: https://twitter.com/bradgarropy
[ama]: https://github.com/bradgarropy/ama