@lovely.sh/get-exec-env

2.0.1 • Public • Published

Introduction

A module to get simply Nodejs or Electron execution environment (development, production or packaged)

Installation

yarn add "@lovely.sh/get-exec-env"

Example of usage

const { isNodeDev, isElectronDev, isElectronPackaged } = require('@lovely.sh/get-exec-env');

if (isNodeDev) {
  console.log('Electron running on development');
}

if (isElectronDev) {
  console.log('Electron running on development');
}

if (isElectronPackaged) {
  console.log('Electron application is currently packaged');
}

Readme

Keywords

none

Package Sidebar

Install

npm i @lovely.sh/get-exec-env

Weekly Downloads

0

Version

2.0.1

License

ISC

Unpacked Size

1.8 kB

Total Files

5

Last publish

Collaborators

  • lovely.sh