1717[ download-image ] : https://img.shields.io/npm/dm/electron-windows.svg
1818[ download-url ] : https://npmjs.org/package/electron-windows
1919
20- > Manage multiple windows of Electron gracefully and provides powerful features.
20+ > Manage multiple windows of Electron gracefully and provide powerful features.
2121
22- <!-- GITCONTRIBUTOR_START -->
23-
24- ## Contributors
25-
26- | [ <img src =" https://avatars.githubusercontent.com/u/1011681?v=4 " width =" 100px; " /><br /><sub ><b >xudafeng</b ></sub >] ( https://github.com/xudafeng ) <br />| [ <img src =" https://avatars.githubusercontent.com/u/17586742?v=4 " width =" 100px; " /><br /><sub ><b >sriting</b ></sub >] ( https://github.com/sriting ) <br />| [ <img src =" https://avatars.githubusercontent.com/u/52845048?v=4 " width =" 100px; " /><br /><sub ><b >snapre</b ></sub >] ( https://github.com/snapre ) <br />| [ <img src =" https://avatars.githubusercontent.com/u/12660278?v=4 " width =" 100px; " /><br /><sub ><b >ColaDaddyz</b ></sub >] ( https://github.com/ColaDaddyz ) <br />| [ <img src =" https://avatars.githubusercontent.com/u/30524126?v=4 " width =" 100px; " /><br /><sub ><b >z0gSh1u</b ></sub >] ( https://github.com/z0gSh1u ) <br />| [ <img src =" https://avatars.githubusercontent.com/u/4081746?v=4 " width =" 100px; " /><br /><sub ><b >zlyi</b ></sub >] ( https://github.com/zlyi ) <br />|
27- | :---: | :---: | :---: | :---: | :---: | :---: |
28- [ <img src =" https://avatars.githubusercontent.com/u/50158871?v=4 " width =" 100px; " /><br /><sub ><b >moshangqi</b ></sub >] ( https://github.com/moshangqi ) <br />
29-
30- This project follows the git-contributor [ spec] ( https://github.com/xudafeng/git-contributor ) , auto updated at ` Fri Apr 25 2025 11:40:35 GMT+0800 ` .
31-
32- <!-- GITCONTRIBUTOR_END -->
33-
34- ## Installment
22+ ## Installation
3523
3624``` bash
3725$ npm i electron-windows --save
3826```
3927
4028## Demo
4129
42- ![ ] ( ./sceenshot .png )
30+ ![ ] ( ./screenshot .png )
4331
4432## APIs
4533
4634### init
4735
4836``` javascript
49- const WindowManager = require (' electron-windows' );
50- const windowManager = new WindowManager ();
37+ const WindowManager = require (' electron-windows' )
38+ const windowManager = new WindowManager ()
5139```
5240
5341### create
5442
5543``` javascript
56- const { app } = require (' electron' );
44+ const { app } = require (' electron' )
5745const winRef = windowManager .create ({
5846 name: ' window1' ,
5947 loadingView: {
@@ -73,14 +61,27 @@ const winRef = windowManager.create({
7361 },
7462 openDevTools: true ,
7563 storageKey: ' storage-filename' , // optional. The name of file. Support storage of window state
76- storagePath: app .getPath (' userData' ), // optional. The path of file, only used when storageKey is not empty
77- });
64+ storagePath: app .getPath (' userData' ), // optional. The path of file, only used when storageKey is not empty
65+ })
7866```
7967
80- ## TODO
68+ ## Roadmap
8169
8270- [ ] support storage of window configuration
83- - [ ] clone pointed window
71+ - [ ] support window cloning
72+
73+ <!-- GITCONTRIBUTOR_START -->
74+
75+ ## Contributors
76+
77+ | [ <img src =" https://avatars.githubusercontent.com/u/1011681?v=4 " width =" 100px; " /><br /><sub ><b >xudafeng</b ></sub >] ( https://github.com/xudafeng ) <br /> | [ <img src =" https://avatars.githubusercontent.com/u/17586742?v=4 " width =" 100px; " /><br /><sub ><b >sriting</b ></sub >] ( https://github.com/sriting ) <br /> | [ <img src =" https://avatars.githubusercontent.com/u/52845048?v=4 " width =" 100px; " /><br /><sub ><b >snapre</b ></sub >] ( https://github.com/snapre ) <br /> | [ <img src =" https://avatars.githubusercontent.com/u/12660278?v=4 " width =" 100px; " /><br /><sub ><b >ColaDaddyz</b ></sub >] ( https://github.com/ColaDaddyz ) <br /> | [ <img src =" https://avatars.githubusercontent.com/u/30524126?v=4 " width =" 100px; " /><br /><sub ><b >z0gSh1u</b ></sub >] ( https://github.com/z0gSh1u ) <br /> | [ <img src =" https://avatars.githubusercontent.com/u/4081746?v=4 " width =" 100px; " /><br /><sub ><b >zlyi</b ></sub >] ( https://github.com/zlyi ) <br /> |
78+ | :------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------: |
79+
80+ [ <img src =" https://avatars.githubusercontent.com/u/50158871?v=4 " width =" 100px; " /><br /><sub ><b >moshangqi</b ></sub >] ( https://github.com/moshangqi ) <br />
81+
82+ This project follows the git-contributor [ spec] ( https://github.com/xudafeng/git-contributor ) , auto updated at ` Fri Apr 25 2025 11:40:35 GMT+0800 ` .
83+
84+ <!-- GITCONTRIBUTOR_END -->
8485
8586## License
8687
0 commit comments