README
elis
A node module for utility in Electron.
Introduction
An 'is' utility for Electron.
elis provides a set of isomorphic 'is' APIs, that you can use it both in main and renderer process.
install
npm install elis --save
API
is.renderer()
Returnstrueif you are calling the function from the renderer process.is.main()
Returnstrueif you are calling the function from the main process.is.osx()
Returnstrueif your app is running under Mac OS.is.windows()
Returnstrueif your app is running under Windows OS.is.linux()
Returnstrueif your app is running under Linux OS.is.x86()
Returnstrueif you the architecture of the processor isia32.is.x64()
Returnstrueif you the architecture of the processor isx64.is.isWin7plusOS()
Returnstrueif you OS is more thanwindows 7.
usage
var is = require('elis');
console.log(is.ismain());//true or false