attr-accept
JavaScript implementation of the "accept" attribute for HTML5 <input type="file">
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept for more information.
Installation
npm install --save attr-accept
Usage
var accept = ; // => true // => false // => true
You can also pass multiple mime types as a comma delimited string or array.
// => true // => true