elis v1.0.1
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()
Returnstrue
if you are calling the function from the renderer process.is.main()
Returnstrue
if you are calling the function from the main process.is.osx()
Returnstrue
if your app is running under Mac OS.is.windows()
Returnstrue
if your app is running under Windows OS.is.linux()
Returnstrue
if your app is running under Linux OS.is.x86()
Returnstrue
if you the architecture of the processor isia32
.is.x64()
Returnstrue
if you the architecture of the processor isx64
.is.isWin7plusOS()
Returnstrue
if you OS is more thanwindows 7
.
##usage var is = require('elis'); console.log(is.ismain());//true or false