Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itw-creative-works/electron-is-snap
Electron is Snap is an NPM module for Electron developers that helps you check if your project is running as a Linux Snap app.
https://github.com/itw-creative-works/electron-is-snap
backend electonjs electron frontend javascript module npm npm-package snap
Last synced: about 2 months ago
JSON representation
Electron is Snap is an NPM module for Electron developers that helps you check if your project is running as a Linux Snap app.
- Host: GitHub
- URL: https://github.com/itw-creative-works/electron-is-snap
- Owner: itw-creative-works
- License: mit
- Created: 2021-01-11T23:15:25.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T21:40:42.000Z (7 months ago)
- Last Synced: 2024-11-03T14:05:23.903Z (2 months ago)
- Topics: backend, electonjs, electron, frontend, javascript, module, npm, npm-package, snap
- Language: JavaScript
- Homepage: https://itwcreativeworks.com
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Site | NPM Module | GitHub Repo
Electron is Snap is an NPM module for Electron developers that helps you check if your project is running as a Linux Snap app.## 📦 Install
Install with npm:
```shell
npm install electron-is-snap
```## 🦄 Features
* Check if your app is running in a **Linux Snap** environment
* Works in the **main** process and the **renderer** process
* Should work for non-Electron projects too## ⚡️ Example Setup
After installing via npm, simply `require` the library and begin enjoying this simple tool 🧰.
```js
// In your main.js or renderer.js file
const isSnap = require('electron-is-snap').isSnap;// Output: boolean
```
## 🗨️ Final Words
If you are still having difficulty, we would love for you to post a question to [the Electron is Snap issues page](https://github.com/itw-creative-works/electron-is-snap/issues). It is much easier to answer questions that include your code and relevant files! So if you can provide them, we'd be extremely grateful (and more likely to help you find the answer!)A special thanks to [electron-is-packaged](https://github.com/ganeshrvel/npm-electron-is-packaged) for inspiring **electron-is-snap** and providing a structure for Electron apps checking if they are running in **Snap**.
## 📚 Projects Using this Library
[Somiibo](https://somiibo.com/): A Social Media Bot with an open-source module library.
[JekyllUp](https://jekyllup.com/): A website devoted to sharing the best Jekyll themes.
[Slapform](https://slapform.com/): A backend processor for your HTML forms on static sites.
[Sniips](https://sniips.com/): A modern, hackable snippet manager
[Proxifly](https://proxifly.com/): An API to get free proxies for your services.
[Optiic](https://optiic.dev/): A free OCR image processing API.
[SoundGrail Music App](https://app.soundgrail.com/): A resource for producers, musicians, and DJs.## 📚 Other Great Libraries
[node-powertools](https://www.npmjs.com/package/node-powertools): An NPM module for backend and frontend developers that exposes powerful utilities and tools.
[optiic](https://www.npmjs.com/package/optiic): An OCR image processing API.
[proxifly](https://www.npmjs.com/package/proxifly): An API to find proxies for your apps.
[slapform](https://www.npmjs.com/package/slapform): A form backend API.