{"id":13531328,"url":"https://github.com/bradgarropy/plop-helper-includes","last_synced_at":"2026-04-07T22:31:04.642Z","repository":{"id":59272149,"uuid":"535487040","full_name":"bradgarropy/plop-helper-includes","owner":"bradgarropy","description":"A plop helper that conditionally renders if an array includes a value.","archived":false,"fork":false,"pushed_at":"2022-09-12T02:52:01.000Z","size":194,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-04T22:59:09.409Z","etag":null,"topics":["array","eslint","includes","jest","node","plop","plop-helper","plop-pack","prettier","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@bradgarropy/plop-helper-includes","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradgarropy.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-12T02:36:40.000Z","updated_at":"2023-11-24T12:38:39.000Z","dependencies_parsed_at":"2022-09-18T05:11:39.468Z","dependency_job_id":null,"html_url":"https://github.com/bradgarropy/plop-helper-includes","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bradgarropy/plop-helper-includes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Fplop-helper-includes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Fplop-helper-includes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Fplop-helper-includes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Fplop-helper-includes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradgarropy","download_url":"https://codeload.github.com/bradgarropy/plop-helper-includes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Fplop-helper-includes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31532142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["array","eslint","includes","jest","node","plop","plop-helper","plop-pack","prettier","typescript"],"created_at":"2024-08-01T07:01:02.069Z","updated_at":"2026-04-07T22:31:04.623Z","avatar_url":"https://github.com/bradgarropy.png","language":"JavaScript","funding_links":[],"categories":["Helpers"],"sub_categories":[],"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\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://bradgarropy.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/11336745?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eBrad Garropy\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/bradgarropy/plop-helper-includes/commits?author=bradgarropy\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/bradgarropy/plop-helper-includes/commits?author=bradgarropy\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/bradgarropy/plop-helper-includes/commits?author=bradgarropy\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"#infra-bradgarropy\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradgarropy%2Fplop-helper-includes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradgarropy%2Fplop-helper-includes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradgarropy%2Fplop-helper-includes/lists"}