A collection of plop helpers to make your life easier.
This package is installable from npm.
npm install --save-dev @bradgarropy/plop-pack-helpers
Before you can use the plop-pack
, you have to load it into the plop
object.
plop.load("@bradgarropy/plop-pack-helpers")
Once loaded, you now have access the following helpers.
Creates a slug for any input text.
input
{
title: "This Is An Example Slug"
}
helper
output
"this-is-an-example-slug"
Creates a formatted date.
input
{}
helper
output
"2020-07-10"
Cleans up a comma separated list of values.
input
{
tags: "one, two, three, four , five "
}
helper
output
"one, two, three, four, five"
🐛 report bugs by filing issues
📢 provide feedback with issues or on twitter
🙋🏼♂️ use my ama or twitter to ask any other questions