Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/electron-modules/electron-webview-schedule

Webview scheduling management, supporting asynchronous queue for Electron.
https://github.com/electron-modules/electron-webview-schedule

electron memory promise-queue webview

Last synced: 2 months ago
JSON representation

Webview scheduling management, supporting asynchronous queue for Electron.

Awesome Lists containing this project

README

        

# electron-webview-schedule

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/electron-webview-schedule.svg
[npm-url]: https://npmjs.org/package/electron-webview-schedule
[travis-image]: https://api.travis-ci.com/electron-modules/electron-webview-schedule.svg?branch=master
[travis-url]: https://travis-ci.com/github/electron-modules/electron-webview-schedule
[coveralls-image]: https://img.shields.io/coveralls/electron-modules/electron-webview-schedule.svg
[coveralls-url]: https://coveralls.io/r/electron-modules/electron-webview-schedule?branch=master
[download-image]: https://img.shields.io/npm/dm/electron-webview-schedule.svg
[download-url]: https://npmjs.org/package/electron-webview-schedule

> Webview scheduling management module supporting asynchronous queue for Electron.

---

## Installment

```bash
$ npm i electron-webview-schedule --save
```

## Usage

Import in the renderer process.

```javascript
import moment from 'moment';
import PromiseQueue from 'electron-webview-schedule/lib/promise-queue';
import WebviewSchedule from 'electron-webview-schedule/lib/webview-schedule';

const webviewSchedule = new WebviewSchedule({
container: document.body,
queue: new PromiseQueue(1),
moment,
webviewOptions: {
eventsStack: [],
attributes: {
},
},
});

webviewSchedule.send('channel-foo', args);
```

## Development

```bash
$ npm i
$ npm run dev
```

![](./demo.png)

## Contributors

|[
xudafeng](https://github.com/xudafeng)
|[
sriting](https://github.com/sriting)
|[
zlyi](https://github.com/zlyi)
|[
moshangqi](https://github.com/moshangqi)
|
| :---: | :---: | :---: | :---: |

This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Thu Feb 23 2023 23:47:00 GMT+0800`.

## License

The MIT License (MIT)