Wondering what’s next for npm?Check out our public roadmap! »

    @bradgarropy/plop-pack-helpers

    2.0.3 • Public • Published

    💧 plop-pack-helpers

    npm npm

    A collection of plop helpers to make your life easier.

    📦 Installation

    This package is installable from npm.

    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.

    plop.load("@bradgarropy/plop-pack-helpers")

    Once loaded, you now have access the following helpers.

    slug

    Creates a slug for any input text.

    input

    {
        title: "This Is An Example Slug"
    }

    helper

    {{slug title}}

    output

    "this-is-an-example-slug"

    date

    Creates a formatted date.

    input

    {}

    helper

    {{date}}

    output

    "2020-07-10"

    list

    Cleans up a comma separated list of values.

    input

    {
        tags: "one, two,  three,  four , five  "
    }

    helper

    {{list tags}}

    output

    "one, two, three, four, five"

    ❔ Questions

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

    Install

    npm i @bradgarropy/plop-pack-helpers

    DownloadsWeekly Downloads

    0

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    5.26 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar