plop-helper-date
Version:
š§ plop helper date
65 lines (43 loc) ⢠1.32 kB
Markdown
## š§ plop-helper-date
<a href="https://npmjs.com/package/plop-helper-date">
<img alt="npm" src="https://img.shields.io/npm/v/plop-helper-date.svg?style=flat-square">
</a>
<a href="https://npmjs.com/package/plop-helper-date">
<img alt="npm" src="https://img.shields.io/npm/dt/plop-helper-date?style=flat-square">
</a>
_A [plop][plop] helper to grab the current date._
### š¦ Installation
This package is installable from [npm][npm].
```bash
npm install --save-dev plop-helper-date
```
### š„ Usage
Before you can use the `plop-pack`, you have to load it into the `plop` object.
```javascript
plop.load("plop-helper-date")
```
Once loaded, you now have access the following helpers.
#### `date`
Creates a formatted date.
**input**
```json
{}
```
**helper**
```handlebars
{{date}}
```
**output**
```javascript
"2020-07-10"
```
### ā 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-date/issues
[twitter]: https://twitter.com/bradgarropy
[ama]: https://github.com/bradgarropy/ama