{"id":13798048,"url":"https://github.com/electron-modules/electron-windows","last_synced_at":"2025-10-03T19:09:45.349Z","repository":{"id":40322980,"uuid":"201186936","full_name":"electron-modules/electron-windows","owner":"electron-modules","description":"Manage multiple windows of Electron gracefully and provides powerful features.","archived":false,"fork":false,"pushed_at":"2023-05-19T09:48:10.000Z","size":445,"stargazers_count":30,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T08:51:13.631Z","etag":null,"topics":["electron","multi-windows"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/electron-modules.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-08-08T05:48:51.000Z","updated_at":"2024-11-06T19:21:25.000Z","dependencies_parsed_at":"2024-01-17T23:39:40.078Z","dependency_job_id":"59fb7c1c-b9d9-43a9-aa74-ca23328038a9","html_url":"https://github.com/electron-modules/electron-windows","commit_stats":{"total_commits":46,"total_committers":7,"mean_commits":6.571428571428571,"dds":"0.30434782608695654","last_synced_commit":"c72c7de67cab47f9825405068946009eff55f096"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electron-modules","download_url":"https://codeload.github.com/electron-modules/electron-windows/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238561675,"owners_count":19492763,"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":["electron","multi-windows"],"created_at":"2024-08-04T00:00:38.268Z","updated_at":"2025-10-03T19:09:45.337Z","avatar_url":"https://github.com/electron-modules.png","language":"JavaScript","funding_links":[],"categories":["Library"],"sub_categories":["Window"],"readme":"# electron-windows\n\n[![NPM version][npm-image]][npm-url]\n[![CI][CI-image]][CI-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![node version][node-image]][node-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/electron-windows.svg\n[npm-url]: https://npmjs.org/package/electron-windows\n[CI-image]: https://github.com/electron-modules/electron-windows/actions/workflows/ci.yml/badge.svg\n[CI-url]: https://github.com/electron-modules/electron-windows/actions/workflows/ci.yml\n[codecov-image]: https://img.shields.io/codecov/c/github/electron-modules/electron-windows.svg?logo=codecov\n[codecov-url]: https://codecov.io/gh/electron-modules/electron-windows\n[node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/electron-windows.svg\n[download-url]: https://npmjs.org/package/electron-windows\n\n\u003e Manage multiple windows of Electron gracefully and provides powerful features.\n\n\u003c!-- GITCONTRIBUTOR_START --\u003e\n\n## Contributors\n\n|[\u003cimg src=\"https://avatars.githubusercontent.com/u/1011681?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003exudafeng\u003c/b\u003e\u003c/sub\u003e](https://github.com/xudafeng)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/17586742?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003esriting\u003c/b\u003e\u003c/sub\u003e](https://github.com/sriting)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/52845048?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003esnapre\u003c/b\u003e\u003c/sub\u003e](https://github.com/snapre)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/12660278?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003eColaDaddyz\u003c/b\u003e\u003c/sub\u003e](https://github.com/ColaDaddyz)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/30524126?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003ez0gSh1u\u003c/b\u003e\u003c/sub\u003e](https://github.com/z0gSh1u)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/4081746?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003ezlyi\u003c/b\u003e\u003c/sub\u003e](https://github.com/zlyi)\u003cbr/\u003e|\n| :---: | :---: | :---: | :---: | :---: | :---: |\n[\u003cimg src=\"https://avatars.githubusercontent.com/u/50158871?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003emoshangqi\u003c/b\u003e\u003c/sub\u003e](https://github.com/moshangqi)\u003cbr/\u003e\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Fri Apr 25 2025 11:40:35 GMT+0800`.\n\n\u003c!-- GITCONTRIBUTOR_END --\u003e\n\n## Installment\n\n```bash\n$ npm i electron-windows --save\n```\n\n## Demo\n\n![](./sceenshot.png)\n\n## APIs\n\n### init\n\n```javascript\nconst WindowManager = require('electron-windows');\nconst windowManager = new WindowManager();\n```\n\n### create\n\n```javascript\nconst { app } = require('electron');\nconst winRef = windowManager.create({\n  name: 'window1',\n  loadingView: {\n    url: '',\n  },\n  browserWindow: {\n    width: 800,\n    height: 600,\n    titleBarStyle: 'hidden',\n    title: 'demo',\n    show: false,\n    webPreferences: {\n      nodeIntegration: app.isDev,\n      webSecurity: true,\n      webviewTag: true,\n    },\n  },\n  openDevTools: true,\n  storageKey: 'storage-filename', // optional. The name of file. Support storage of window state\n  storagePath: app.getPath('userData'), // optional. The path of file, only used when storageKey is not empty \n});\n```\n\n## TODO\n\n- [ ] support storage of window configuration\n- [ ] clone pointed window\n\n## License\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectron-modules%2Felectron-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectron-modules%2Felectron-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectron-modules%2Felectron-windows/lists"}