/is-unity

Check if the current session runs Unity desktop

Primary LanguageJavaScriptMIT LicenseMIT

is-unity Build Status Travis

Check if the current session runs Unity desktop.

Install

$ npm install --save is-unity

Usage

const isUnity = require('is-unity');

isUnity.then(data => {
  console.log(data);
  //=> true or false
});

API

isUnity()

Returns a Promise that resolves either to true or false.

Related

License

MIT © t1st3