{"id":19082702,"url":"https://github.com/alsiola/plop-prettier","last_synced_at":"2025-07-01T09:34:37.863Z","repository":{"id":57325966,"uuid":"102764609","full_name":"alsiola/plop-prettier","owner":"alsiola","description":"Use prettier to format plop templates","archived":false,"fork":false,"pushed_at":"2019-10-14T19:08:10.000Z","size":14,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-30T08:51:52.899Z","etag":null,"topics":["plop","prettier"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/alsiola.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-07T17:10:09.000Z","updated_at":"2023-10-22T15:01:24.000Z","dependencies_parsed_at":"2022-09-21T02:01:03.840Z","dependency_job_id":null,"html_url":"https://github.com/alsiola/plop-prettier","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/alsiola/plop-prettier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alsiola%2Fplop-prettier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alsiola%2Fplop-prettier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alsiola%2Fplop-prettier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alsiola%2Fplop-prettier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alsiola","download_url":"https://codeload.github.com/alsiola/plop-prettier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alsiola%2Fplop-prettier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262936510,"owners_count":23387395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["plop","prettier"],"created_at":"2024-11-09T02:44:08.265Z","updated_at":"2025-07-01T09:34:37.790Z","avatar_url":"https://github.com/alsiola.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plop-prettier\nUse prettier to format plop templates with a custom plop action type.\n\n## Installation\n````\nnpm i --save plop-prettier\n````\n\n## Usage\nIn your base plopfile, use `plop.load` to add the \"pretty-add\" action::\n````\nconst aGenerator = require(\"./path/to/a/generator\");\n\nmodule.exports = function(plop) {\n    plop.load(\"plop-prettier\");\n\n    plop.setGenerator(\"Generator Name\", aGenerator);\n};\n````\nYou can now use the \"pretty-add\" action type within your generators:\n````\nconst anAction = {\n    type: \"pretty-add\",\n    path: \"path/to/generated/file\",\n    template: \"path/to/template\"\n};\n````\n\n## Options\nPrettier options can be provided - for information on available prettier options see the [prettier docs](https://github.com/prettier/prettier#options).\n````\nconst aGenerator = require(\"./path/to/a/generator\");\n\nmodule.exports = function(plop) {\n    plop.load(\"plop-prettier\", {\n        tabWidth: 4\n    });\n\n    plop.setGenerator(\"Generator Name\", aGenerator);\n};\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falsiola%2Fplop-prettier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falsiola%2Fplop-prettier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falsiola%2Fplop-prettier/lists"}