https://github.com/egoist/electron-single
Making your application a Single Instance Application
https://github.com/egoist/electron-single
Last synced: 24 days ago
JSON representation
Making your application a Single Instance Application
- Host: GitHub
- URL: https://github.com/egoist/electron-single
- Owner: egoist
- License: mit
- Created: 2018-03-05T03:31:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-25T14:29:24.000Z (over 3 years ago)
- Last Synced: 2025-06-08T21:51:56.859Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# electron-single
[](https://npmjs.com/package/electron-single) [](https://npmjs.com/package/electron-single) [](https://circleci.com/gh/egoist/electron-single/tree/master) [](https://github.com/egoist/donate) [](https://chat.egoist.moe)
Instead of allowing multiple instances of your app to run, this will ensure that only a single instance of your app is running, and other instances signal this instance and exit.
## Install
```bash
yarn add electron-single
```## Usage
```js
const makeSingle = require('electron-single')makeSingle(mainWindow)
```## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D## Author
**electron-single** © [EGOIST](https://github.com/egoist), Released under the [MIT](./LICENSE) License.
Authored and maintained by EGOIST with help from contributors ([list](https://github.com/egoist/electron-single/contributors)).> [github.com/egoist](https://github.com/egoist) · GitHub [@EGOIST](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily)