{"id":24983711,"url":"https://github.com/posthtml/koa-posthtml","last_synced_at":"2025-04-11T20:52:24.515Z","repository":{"id":57289415,"uuid":"51420348","full_name":"posthtml/koa-posthtml","owner":"posthtml","description":"PostHTML for Koa","archived":false,"fork":false,"pushed_at":"2017-01-20T16:46:00.000Z","size":12,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T21:06:03.321Z","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}},"created_at":"2016-02-10T04:14:46.000Z","updated_at":"2018-01-18T19:54:24.000Z","dependencies_parsed_at":"2022-09-08T13:52:32.093Z","dependency_job_id":null,"html_url":"https://github.com/posthtml/koa-posthtml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fkoa-posthtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fkoa-posthtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fkoa-posthtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fkoa-posthtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posthtml","download_url":"https://codeload.github.com/posthtml/koa-posthtml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157280,"owners_count":20893223,"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:34.241Z","updated_at":"2025-04-11T20:52:24.495Z","avatar_url":"https://github.com/posthtml.png","language":"JavaScript","readme":"[![NPM][npm]][npm-url]\n[![Deps][deps]][deps-url]\n[![Tests][build]][build-url]\n[![Coverage][cover]][cover-url]\n[![Standard Code Style][style]][style-url]\n[![Chat][chat]][chat-badge]\n\n# Koa PostHTML \u003cimg align=\"right\" width=\"200\" height=\"220\" title=\"PostHTML\" src=\"http://posthtml.github.io/posthtml/logo.svg\"\u003e\n\n## Install\n\n```bash\nnpm i -S koa-posthtml\n```\n\n## Usage\n\n```js\n'use strict'\n\nimport { join } from 'path'\n\nimport koa from 'koa'\nimport posthtml from 'koa-posthtml'\n\nconst app = koa()\n\n// Setup View Engine\nposthtml(app, {\n  ext: 'html',\n  root: join(__dirname, 'views'),\n  options: {/* Options */},\n  plugins: [/* Plugins */]\n  writeResp: true\n})\n\napp.use(function * () {\n  // Render index.html\n  yield this.render('index')\n})\n\napp.on('error', (err) =\u003e console.error('=\u003e Server error', err))\n\napp.listen(3000, () =\u003e console.log('=\u003e Server started'))\n```\n\n## Maintainers\n\n\u003ctable\u003e\n  \u003ctbody\u003e\n   \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg width=\"150 height=\"150\"\n      src=\"https://avatars.githubusercontent.com/u/5419992?v=3\u0026s=150\"\u003e\n      \u003cbr /\u003e\n      \u003ca href=\"https://github.com/michael-ciniawsky\"\u003eMichael Ciniawsky\u003c/a\u003e\n    \u003c/td\u003e\n   \u003c/tr\u003e\n  \u003ctbody\u003e\n\u003c/table\u003e\n\n## Contributing\n\nSee [PostHTML Guidelines](https://github.com/posthtml/posthtml/tree/master/docs) and [contribution guide](CONTRIBUTING.md).\n\n## LICENSE\n\n[npm]: https://img.shields.io/npm/v/koa-posthtml.svg\n[npm-url]: https://npmjs.com/package/koa-posthtml\n\n[deps]: https://david-dm.org/posthtml/koa-posthtml.svg\n[deps-url]: https://david-dm.org/posthtml/koa-posthtml\n\n[build]: http://img.shields.io/travis/posthtml/koa-posthtml.svg\n[build-url]: https://travis-ci.org/posthtml/koa-posthtml\n\n[cover]: https://coveralls.io/repos/github/posthtml/koa-posthtml/badge.svg?branch=master\n[cover-url]: https://coveralls.io/github/posthtml/koa-posthtml?branch=master\n\n[style]: https://img.shields.io/badge/code%20style-standard-yellow.svg\n[style-url]: http://standardjs.com/\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%2Fkoa-posthtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposthtml%2Fkoa-posthtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fkoa-posthtml/lists"}