Skip to content
/ is-unity Public

Check if the current session runs Unity desktop

License

Notifications You must be signed in to change notification settings

t1st3/is-unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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