Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/electron-modules/electron-webview-schedule
- Owner: electron-modules
- Created: 2020-08-30T13:20:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-23T15:48:04.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T23:42:01.033Z (10 months ago)
- Topics: electron, memory, promise-queue, webview
- Language: JavaScript
- Homepage:
- Size: 287 KB
- Stars: 14
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)