# infusion-electron

> Infusion component wrappers for Electron

Latest version **0.10.0** (published 2023-03-14) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install infusion-electron
pnpm add infusion-electron
yarn add infusion-electron
bun add infusion-electron
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.0 |
| Published | 2023-03-14 |
| First published | 2015-11-04 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 39.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Colin Clark |
| Maintainers | colinbdclark |

## Links

- npm: https://www.npmjs.com/package/infusion-electron
- Repository: https://github.com/colinbdclark/infusion-electron
- Homepage: http://github.com/colinbdclark/infusion-electron
- Issues: http://github.com/colinbdclark/infusion-electron/issues
- npm.io page: https://npm.io/package/infusion-electron

## Dependencies (2)

- [file-url](https://npm.io/package/file-url.md) 3.0.0
- [infusion](https://npm.io/package/infusion.md) 4.2.0

## Recent versions

- 0.10.0 (latest) — 2023-03-14
- 0.6.0-dev.20190114T195841Z.9a0b8fe.gh-5 (dev) — 2019-01-14
- 0.8.1 — 2022-03-14
- 0.9.0 — 2022-03-04
- 0.8.0 — 2020-12-29
- 0.7.0 — 2019-09-10
- 0.6.0 — 2019-02-18
- 0.6.0-dev.20190114T062130Z.f91cc87.gh-5 — 2019-01-14
- 0.6.0-dev.20190114T051542Z.a91b4ab.gh-5 — 2019-01-14
- 0.5.0 — 2019-01-13
- 0.4.1 — 2018-04-02
- 0.4.0 — 2018-04-02
- 0.2.0 — 2015-11-04

## README

# infusion-electron

Infusion-Electron is a collection of [Fluid Infusion](https://github.com/fluid-project/infusion)
components that make it easier to use [Electron](https://github.com/electron/electron).

## Using infusion-electron

1. Declare dependencies on Infusion and <code>infusion-electron</code> in your application's <code>package.json</code> file:

    {
        "name": "my-infusion-electron-app",
        "dependencies": {
            "infusion": "2.0.0",
            "infusion-electron": "0.4.0"
        }
    }

2. <code>require()</code> Infusion and infusion-electron:

    var fluid = require("infusion");
    require("infusion-electron");

3. Define your application component. Windows can be child components of your app:

    fluid.defaults("myapp.app", {
        gradeNames: "electron.app",

        commandLineSwitches: {
            "disable-renderer-backgrounding": null
        },

        components: {
            mainWindow: {
                createOnEvent: "onReady",
                type: "electron.browserWindow",
                options: {
                    width: 1920,
                    height: 1080,
                    url: "html/main-window.html"
                }
            },
        }
    });

## Attribution and License

This library was written by Colin Clark and is distributed under the "new" BSD 3-clause license.

---
_Source: https://npm.io/package/infusion-electron · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
