{"_id":"@bradgarropy/plop-helper-includes","name":"@bradgarropy/plop-helper-includes","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bradgarropy/plop-helper-includes","version":"1.0.0","description":"A plop helper that conditionally renders if an array includes a value.","keywords":["node","typescript","eslint","prettier","jest","plop","plop-pack","plop-helper","array","includes"],"homepage":"https://github.com/bradgarropy/plop-helper-includes","bugs":{"url":"https://github.com/bradgarropy/plop-helper-includes/issues"},"license":"MIT","author":{"name":"Brad Garropy","email":"bradgarropy@gmail.com","url":"https://bradgarropy.com"},"main":"dist/index.js","types":"dist/types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/bradgarropy/plop-helper-includes.git"},"scripts":{"start":"tsc --watch","build":"tsc","lint":"eslint .","lint:fix":"eslint --fix .","format":"prettier --check .","format:fix":"prettier --write .","test":"jest --passWithNoTests","test:watch":"jest --passWithNoTests --watch","contributors":"all-contributors generate","prepare":"npm run build"},"dependencies":{"plop":"^3.1.1"},"devDependencies":{"@bradgarropy/eslint-config":"^1.1.0","@bradgarropy/eslint-config-typescript":"^1.0.0","@types/jest":"^26.0.20","@typescript-eslint/eslint-plugin":"^4.14.2","@typescript-eslint/parser":"^4.14.2","all-contributors-cli":"^6.20.0","babel-eslint":"^10.1.0","eslint":"^7.19.0","eslint-config-prettier":"^7.1.0","eslint-plugin-simple-import-sort":"^7.0.0","husky":"^4.3.8","jest":"^26.6.3","lint-staged":"^10.5.4","prettier":"^2.2.1","ts-jest":"^26.5.0","typescript":"^4.1.3"},"engines":{"node":">=10"},"gitHead":"8e08af3962be2931e9cded76f51814db4940647b","_id":"@bradgarropy/plop-helper-includes@1.0.0","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-kdMHLv8/22wC5pwl4y3fifW3L7ea/ICCiwzGiv8VuNw+ipkccKgjnjEHV59lp08iOqlDEQOOSez2F2iFmW+4dA==","shasum":"4332b4a0b485259ee582e045560d7d37d334d7ca","tarball":"https://registry.npmjs.org/@bradgarropy/plop-helper-includes/-/plop-helper-includes-1.0.0.tgz","fileCount":6,"unpackedSize":8286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGn+2O4kv6LmF5Y3NOtU2RMcgWtt7hJI4nfEqbm48GRFAiAWstawYtHTePkxLWIhm62TWjbq3i2ljqV9FhF/Q7yShw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHp7yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgEw//XKlvYJw00pnEJrSv+lQ7bSsj1xR6ceR0SrBjQ/ay+fkkhfP2\r\nDD0yuu9rSfYuGE7tEDaYcIUwfNp7glk9aZtQvycrkXfBQipKs5k3ksjSTvPJ\r\nkF1yW5MiokAjM4j+K+lMIKrMS7SZzy4YHV/hAyfwkHBn5CSbb5PivB+m6tnB\r\nsMzyzmX0Da8lb5sB//JWa91T+ruvFFTBmc8stqD7bUcj5B7OT9Xc/5VlES7L\r\nqoa21/OW8IdHY3qTEOBa90Un9F2pUMjzEN24jcTxSEv00dAnLzzkf1aThgW+\r\nC/qVV81If6Z7174XRwCSAhf3cdyUUXw8JaJSkVn/6gr8qi/YjXsRtjdSW9cb\r\nCVnX0RGlzfj+01yc8SQdHjZk05hAaJS9vWU1Z2s/zdfpLniSQPl5HnmHBiWz\r\nC/20Lj6oHjgPZwipAVt+2n3Jq0oHAE84GE72dVZExvGtx/PQnVnPupCRPdrb\r\nR3F/0AmcPpjf5CK4/S8DYvmUO+f1ElwsB4C93kjP/vYdsbFycHQXaP91ot1g\r\nIIKk6MQSbaTo5ApAr7oGo3nmP2H5Dcar24FFqSMdzjLn5zPcpVWS8hzENmqj\r\nKAgVhvG+CtmAvAdZ0dQPJehMnZRTi6MeNW0Fok86fufxBN1dY6R0tgF6xUGE\r\nVAy/jAHKaHF2veu1BoKai+aZ/QNKOzv1vL0=\r\n=8psT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bradgarropy","email":"bradgarropy@gmail.com"},"directories":{},"maintainers":[{"name":"bradgarropy","email":"bradgarropy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plop-helper-includes_1.0.0_1662951154081_0.38134660037282697"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-12T02:52:33.960Z","1.0.0":"2022-09-12T02:52:34.261Z","modified":"2022-09-12T02:52:34.473Z"},"maintainers":[{"name":"bradgarropy","email":"bradgarropy@gmail.com"}],"description":"A plop helper that conditionally renders if an array includes a value.","homepage":"https://github.com/bradgarropy/plop-helper-includes","keywords":["node","typescript","eslint","prettier","jest","plop","plop-pack","plop-helper","array","includes"],"repository":{"type":"git","url":"git+https://github.com/bradgarropy/plop-helper-includes.git"},"author":{"name":"Brad Garropy","email":"bradgarropy@gmail.com","url":"https://bradgarropy.com"},"bugs":{"url":"https://github.com/bradgarropy/plop-helper-includes/issues"},"license":"MIT","readme":"# 💧 plop helper includes\n\n[![version][version-badge]][npm]\n[![downloads][downloads-badge]][npm]\n[![size][size-badge]][bundlephobia]\n[![github actions][github-actions-badge]][github-actions]\n[![coverage][codecov-badge]][codecov]\n[![typescript][typescript-badge]][typescript]\n[![contributing][contributing-badge]][contributing]\n[![contributors][contributors-badge]][contributors]\n[![discord][discord-badge]][discord]\n\n_A [`plop`][plop] helper that determines if an array includes a value._\n\n## 📦 Installation\n\nThis package is hosted on [npm][npm].\n\n```bash\nnpm install @bradgarropy/plop-helper-includes\n```\n\n## 🥑 Usage\n\nFirst, be sure you have [`plop`][plop] installed. Then, add the following line to your `plopfile.js`.\n\n```javascript\nplop.load(\"@bradgarropy/plop-helper-includes\")\n```\n\nOnce loaded, you now have access the following helpers.\n\n### `includes`\n\nConditional template based on if an array includes a string.\n\n#### input\n\n```javascript\n{\n    toppings: [\"pepperoni\", \"onions\"]\n}\n```\n\n#### helper\n\n```handlebars\n{{#includes toppings \"pepperoni\"}}\n    pepperoni\n{{else}}\n    no pepperoni\n{{/includes}}\n{{#includes toppings \"onions\"}}\n    onions\n{{else}}\n    no onions\n{{/includes}}\n```\n\n#### output\n\n```text\npepperoni\nonions\n```\n\n## ❔ Questions\n\n🐛 report bugs by filing [issues][issues]  \n📢 provide feedback with [issues][issues] or on [twitter][twitter]  \n🙋🏼‍♂️ use my [ama][ama] or [twitter][twitter] to ask any other questions\n\n## ✨ contributors\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://bradgarropy.com\"><img src=\"https://avatars.githubusercontent.com/u/11336745?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Brad Garropy</b></sub></a><br /><a href=\"https://github.com/bradgarropy/plop-helper-includes/commits?author=bradgarropy\" title=\"Code\">💻</a> <a href=\"https://github.com/bradgarropy/plop-helper-includes/commits?author=bradgarropy\" title=\"Documentation\">📖</a> <a href=\"https://github.com/bradgarropy/plop-helper-includes/commits?author=bradgarropy\" title=\"Tests\">⚠️</a> <a href=\"#infra-bradgarropy\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n[codecov]: https://app.codecov.io/gh/bradgarropy/plop-helper-includes\n[contributing]: https://github.com/bradgarropy/plop-helper-includes/blob/master/contributing.md\n[contributors]: #-contributors\n[npm]: https://www.npmjs.com/package/@bradgarropy/plop-helper-includes\n[codecov-badge]: https://img.shields.io/codecov/c/github/bradgarropy/plop-helper-includes?style=flat-square\n[version-badge]: https://img.shields.io/npm/v/@bradgarropy/plop-helper-includes.svg?style=flat-square\n[downloads-badge]: https://img.shields.io/npm/dt/@bradgarropy/plop-helper-includes?style=flat-square\n[contributing-badge]: https://img.shields.io/badge/PRs-welcome-success?style=flat-square\n[contributors-badge]: https://img.shields.io/github/all-contributors/bradgarropy/plop-helper-includes?style=flat-square\n[issues]: https://github.com/bradgarropy/plop-helper-includes/issues\n[twitter]: https://twitter.com/bradgarropy\n[ama]: https://bradgarropy.com/ama\n[bundlephobia]: https://bundlephobia.com/result?p=@bradgarropy/plop-helper-includes\n[size-badge]: https://img.shields.io/bundlephobia/minzip/@bradgarropy/plop-helper-includes?style=flat-square\n[github-actions]: https://github.com/bradgarropy/plop-helper-includes/actions\n[github-actions-badge]: https://img.shields.io/github/workflow/status/bradgarropy/plop-helper-includes/%F0%9F%9A%80%20release?style=flat-square\n[typescript]: https://www.typescriptlang.org/dt/search?search=%40bradgarropy%2Fplop-helper-includes\n[typescript-badge]: https://img.shields.io/npm/types/@bradgarropy/plop-helper-includes?style=flat-square\n[discord]: https://bradgarropy.com/discord\n[discord-badge]: https://img.shields.io/discord/748196643140010015?style=flat-square\n[plop]: https://plopjs.com\n[remix]: https://remix.run\n","readmeFilename":"readme.md"}