Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.