{"id":24983700,"url":"https://github.com/posthtml/posthtml-component","last_synced_at":"2025-03-29T10:12:39.311Z","repository":{"id":66111650,"uuid":"212036541","full_name":"posthtml/posthtml-component","owner":"posthtml","description":"component PostHTML plugin","archived":false,"fork":false,"pushed_at":"2019-10-03T07:56:06.000Z","size":78,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T21:06:04.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/posthtml.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":"contributing.md","funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-10-01T07:27:32.000Z","updated_at":"2020-11-17T17:22:32.000Z","dependencies_parsed_at":"2023-03-10T02:16:40.310Z","dependency_job_id":null,"html_url":"https://github.com/posthtml/posthtml-component","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"d330ba8066473ba08150e9305ece5add916d53ca"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":"posthtml/posthtml-plugin-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posthtml","download_url":"https://codeload.github.com/posthtml/posthtml-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245458719,"owners_count":20618697,"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":[],"created_at":"2025-02-04T09:20:33.287Z","updated_at":"2025-03-29T10:12:39.284Z","avatar_url":"https://github.com/posthtml.png","language":"JavaScript","readme":"# PostHTML Plugin Boilerplate \u003cimg align=\"right\" width=\"220\" height=\"200\" title=\"PostHTML logo\" src=\"http://posthtml.github.io/posthtml/logo.svg\"\u003e\n\n[![NPM][npm]][npm-url]\n[![Deps][deps]][deps-url]\n[![Build][build]][build-badge]\n[![Coverage][cover]][cover-badge]\n[![Standard Code Style][style]][style-url]\n[![Chat][chat]][chat-badge]\n\nClone this repo and explain what your plugin do and why thousands of people need it ;)\n\nBefore:\n``` html\n\u003chtml\u003e\n  \u003cbody\u003e\n    \u003cp class=\"wow\"\u003eOMG\u003c/p\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nAfter:\n``` html\n\u003csvg xmlns=\"http://www.w3.org/2000/svg\"\u003e\n  \u003ctext class=\"wow\" id=\"wow_id\" fill=\"#4A83B4\" fill-rule=\"evenodd\" font-family=\"Verdana\"\u003e\n    OMG\n  \u003c/text\u003e\n\u003c/svg\u003e\n```\n\n## Install\n\nDescribe how big guys can install your plugin.\n\n\u003e npm i posthtml posthtml-plugin\n\n## Usage\n\nDescribe how people can use this plugin. Include info about build systems if it's\nnecessary.\n\n``` js\nconst fs = require('fs');\nconst posthtml = require('posthtml');\nconst posthtmlPlugin = require('posthtml-plugin');\n\nposthtml()\n    .use(posthtmlPlugin({ /* options */ }))\n    .process(html/*, options */)\n    .then(result =\u003e fs.writeFileSync('./after.html', result.html));\n```\n\n## Options\n\nDescribe all features of your plugin with examples of usage.\n\n### Feature\nBefore:\n``` html\n\u003chtml\u003e\n  \u003cbody\u003e\n    \u003cp\u003eOMG\u003c/p\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\nAdd option:\n``` js\nconst fs = require('fs');\nconst posthtml = require('posthtml');\nconst posthtmlPlugin = require('posthtml-plugin');\n\nposthtml()\n    .use(posthtmlPlugin({ feature: 'wow' }))\n    .process(html/*, options */)\n    .then(result =\u003e fs.writeFileSync('./after.html', result.html));\n```\nAfter:\n``` html\n\u003chtml\u003e\n  \u003cbody\u003e\n    \u003cp class=\"wow\"\u003eOMG\u003c/p\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Contributing\n\nSee [PostHTML Guidelines](https://github.com/posthtml/posthtml/tree/master/docs) and [contribution guide](CONTRIBUTING.md).\n\n### License [MIT](LICENSE)\n\n[npm]: https://img.shields.io/npm/v/posthtml.svg\n[npm-url]: https://npmjs.com/package/posthtml\n\n[deps]: https://david-dm.org/posthtml/posthtml.svg\n[deps-url]: https://david-dm.org/posthtml/posthtml\n\n[style]: https://img.shields.io/badge/code%20style-standard-yellow.svg\n[style-url]: http://standardjs.com/\n\n[build]: https://travis-ci.org/posthtml/posthtml.svg?branch=master\n[build-badge]: https://travis-ci.org/posthtml/posthtml?branch=master\n\n[cover]: https://coveralls.io/repos/posthtml/posthtml/badge.svg?branch=master\n[cover-badge]: https://coveralls.io/r/posthtml/posthtml?branch=master\n\n\n[chat]: https://badges.gitter.im/posthtml/posthtml.svg\n[chat-badge]: https://gitter.im/posthtml/posthtml?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fposthtml-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposthtml%2Fposthtml-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fposthtml-component/lists"}