1.0.1 • Published 3 years ago

detect-app-store v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

About

Detect App Store is a small JS library for detecting if your code is running inside an app store environment such as Linux Snap or Windows Store. This is useful for instance in electron apps, if you want certain functions to operate only within certain environments.

Detect App Store is based on electron-is-snap.

Install

Install with npm:

npm install detect-app-store

Features

  • Check if your app is running in a Linux Snap environment
  • Check if your app is running in a Windows Store environment

Example Setup

After installing via npm, require or import the detect-app-store.

// using require
var isSnap = require('detect-app-store').isSnap;
var isWindowsStore = require('detect-app-store').isWindowsStore;
// using import
import { isSnap, isWindowsStore } from 'detect-app-store';