Feature Detector
An extensible tool for detecting environment features such as WebGL or Web Workers.
Installation
npm install feature-detector
Usage
Basics
; const detector = ;const feature = detector; console;console;
Custom Features
; { super; thisname = "My Feature"; // Check if your feature is supported in this environment. // Note that this.root serves as a reference to the global scope. thissupported = true || false; }
;; const detector = ;const MY_ID = "my-feature"; detector;
Contributing
Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.