tricord
v0.0.2
Published
Some functions to inspect the context of a process.
Downloads
2
Readme
Tricord
Just some functions for your creature to inspect the environment when it is released into the wild. Lots of thing todo.
Functions
Don't use require(). This module doesn't export. Copy paste them from index.js
/* Do we support ECMAScript6? */
console.log('es6supported', es6supported())
/* Can we make a Promise? */
console.log('canPromise', canPromise())
/* Do we support ES7 async/await? */
console.log('asyncSupported', asyncSupported())
/* Do we support Workers? */
console.log('workerSupported', workerSupported())
/* Are we in a browser? (optimal version argument) */
console.log('isBrowser', isBrowser())
/* Are we running Node.js? (optimal version argument) */
console.log('isNode', isNode())
/* Are we running Node.js version 7.10.0? (optimal version argument) */
console.log('isNode(version)', isNode('v7.10.0'))
/* Are we running Google Chrome? (optimal version argument) */
console.log('isChrome', isChrome())
/* Are we running Microsoft Edge? (optimal version argument) */
console.log('isEdge', isEdge())
/* Are we running Mozilla Firefox? (optimal version argument) */
console.log('isFirefox', isFirefox())
/* Are we a dinosaur? (optimal version argument) */
console.log('isInternetExplorer', isInternetExplorer())
/* Are we running NW.js? */
console.log('isNW', isNW())
/* Are we inside an Electron main process? (not window) */
console.log('isElectronProcess', isElectronProcess())
/* Are we inside an Electron browser window? */
console.log('isElectronWindow', isElectronWindow())