{"id":24983719,"url":"https://github.com/posthtml/electron-posthtml","last_synced_at":"2025-04-11T20:52:41.203Z","repository":{"id":66088987,"uuid":"51456258","full_name":"posthtml/electron-posthtml","owner":"posthtml","description":"PostHTML for Electron","archived":false,"fork":false,"pushed_at":"2019-02-20T13:29:19.000Z","size":36,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T19:55:06.364Z","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":"2016-02-10T17:04:04.000Z","updated_at":"2019-02-20T13:29:21.000Z","dependencies_parsed_at":"2023-03-10T02:16:40.878Z","dependency_job_id":null,"html_url":"https://github.com/posthtml/electron-posthtml","commit_stats":{"total_commits":25,"total_committers":3,"mean_commits":8.333333333333334,"dds":0.24,"last_synced_commit":"160cbc985c7a0e87455bd6789755d5341e1bc863"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Felectron-posthtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Felectron-posthtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Felectron-posthtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Felectron-posthtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posthtml","download_url":"https://codeload.github.com/posthtml/electron-posthtml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247920913,"owners_count":21018489,"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:45.851Z","updated_at":"2025-04-11T20:52:41.182Z","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## Install \u003cimg width=\"200\" height=\"220\" align=\"right\" title=\"PostHTML\" src=\"http://posthtml.github.io/posthtml/logo.svg\"\u003e\n\n```bash\nnpm i -S electron-posthtml\n```\n\n## Usage\n\nThis modules intercepts the **_file://_** Protocol using [Electrons Protocol API][api]. All HTML files will automatically processed by PostHTML.\n\n[api]: http://electron.atom.io/docs/api/protocol/\n\n```js\n'use strict'\n\nimport { app, BrowserWindow } from 'electron'\nimport posthtml from 'electron-posthtml'\n\n// Use PostHTML\nposthtml([/* Plugins */])\n\napp.on('ready', () =\u003e {\n  const view = new BrowserWindow({ width: 800, height: 600 })\n\n  view.loadUrl(`file://${__dirname}/index.html`)\n})\n```\n\n## [Example](https://github.com/posthtml/electron-posthtml//tree/master/test)\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[MIT](LICENSE)\n\n[npm]: https://img.shields.io/npm/v/electron-posthtml.svg\n[npm-url]: https://npmjs.com/package/electron-posthtml\n\n[deps]: https://david-dm.org/posthtml/electron-posthtml.svg\n[deps-url]: https://david-dm.org/posthtml/electron-posthtml\n\n[style]: https://img.shields.io/badge/code%20style-standard-yellow.svg\n[style-url]: http://standardjs.com/\n\n[build]: http://img.shields.io/travis/posthtml/electron-posthtml.svg\n[build-url]: https://travis-ci.org/posthtml/electron-posthtml\n\n[cover]: https://coveralls.io/repos/github/posthtml/electron-posthtml/badge.svg?branch=master\n[cover-url]: https://coveralls.io/github/posthtml/electron-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%2Felectron-posthtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposthtml%2Felectron-posthtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Felectron-posthtml/lists"}