detect-app-store

1.0.1 • Public • Published

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';

Package Sidebar

Install

npm i detect-app-store

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

3.3 kB

Total Files

4

Last publish

Collaborators

  • roryok