hasdom
Check if a JavaScript environment has a real DOM.
Well, javascript environment is more complicated than you have ever thought.
When we talk about environment
, most of us knows about web browser and node.js
.
But that's not complete.
If you have heard some game engines based on javascript such as Egret
, Cocos2d-js
and layabox
,
then you will realize that you are misunderstanding this word.
Node.js
npm install hasdom
var hasDOM = hasDOM consoleconsole
Web Page
Source Code
Written in ECMAScript 6 with AMD / CommonJS / UMD support
Build Tools
- gulp
- babel
- jshint
- esperanto
- uglify