# electron-posthtml
**Repository Path**: mirrors_posthtml/electron-posthtml
## Basic Information
- **Project Name**: electron-posthtml
- **Description**: PostHTML for Electron
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-09-25
- **Last Updated**: 2025-09-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[![NPM][npm]][npm-url]
[![Deps][deps]][deps-url]
[![Tests][build]][build-url]
[![Coverage][cover]][cover-url]
[![Standard Code Style][style]][style-url]
[![Chat][chat]][chat-badge]
## Install
```bash
npm i -S electron-posthtml
```
## Usage
This modules intercepts the **_file://_** Protocol using [Electrons Protocol API][api]. All HTML files will automatically processed by PostHTML.
[api]: http://electron.atom.io/docs/api/protocol/
```js
'use strict'
import { app, BrowserWindow } from 'electron'
import posthtml from 'electron-posthtml'
// Use PostHTML
posthtml([/* Plugins */])
app.on('ready', () => {
const view = new BrowserWindow({ width: 800, height: 600 })
view.loadUrl(`file://${__dirname}/index.html`)
})
```
## [Example](https://github.com/posthtml/electron-posthtml//tree/master/test)
## Maintainers
Michael Ciniawsky |