mastic-detect

1.0.0 • Public • Published

mastic-detect

Collection of feature detection tests

How to use it

First, install mastic-detect as one of your dependencies :

npm i mastic-detect --save

and then you can import it in your project

import detect from 'mastic-detect';
 
if (detect.Promise) {
    // yay ! Promises are here ❤️
}

you can also import only the test you want

import { hasPromise } from 'mastic-detect';
 
if (hasPromise) {
    // yay ! Promises are here ❤️
}

Package Sidebar

Install

npm i mastic-detect

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • thibthib