{"name":"attr-accept","description":"JavaScript implementation of the \"accept\" attribute for HTML5 <input type=\"file\">","version":"1.1.3","main":"dist/index.js","scripts":{"build":"webpack -p","prepublish":"npm test && npm run build","pretest":"npm run lint","test":"mocha --compilers js:babel-core/register --recursive","test:watch":"npm test -- --watch","lint":"eslint src/ test/","precommit":"lint-staged","size":"size-limit","size:why":"size-limit --why","travis-deploy-once":"travis-deploy-once"},"repository":{"type":"git","url":"git+https://github.com/okonet/attr-accept.git"},"keywords":["html5","input","tag","attribute","attr","accept","file"],"author":{"name":"Andrey Okonetchnikov @okonetchnikov"},"license":"MIT","bugs":{"url":"https://github.com/okonet/attr-accept/issues"},"homepage":"https://github.com/okonet/attr-accept#readme","dependencies":{"core-js":"^2.5.0"},"devDependencies":{"babel-core":"^6.26.0","babel-eslint":"^8.0.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.0","cz-conventional-changelog":"^1.2.0","eslint":"^4.6.1","eslint-config-airbnb":"^15.1.0","eslint-config-okonet":"^6.1.3","eslint-config-prettier":"^2.4.0","eslint-plugin-flowtype":"^2.35.1","eslint-plugin-import":"^2.7.0","eslint-plugin-jsx-a11y":"^5.1.1","eslint-plugin-node":"^5.1.1","eslint-plugin-prettier":"^2.2.0","eslint-plugin-react":"^7.3.0","expect":"^1.20.2","husky":"^0.14.3","lint-staged":"^4.1.3","mocha":"^3.5.0","prettier":"^1.6.1","size-limit":"^0.14.0","travis-deploy-once":"^4.3.4","webpack":"^3.5.5"},"engines":{"node":">=4"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"size-limit":[{"path":"dist/index.js","limit":"2 KB"}],"gitHead":"effe60519b9cedbc38c5ef42f14594dd3ae26ff5","_id":"attr-accept@1.1.3","_npmVersion":"5.10.0","_nodeVersion":"8.11.3","_npmUser":{"name":"okonet","email":"andrey@okonet.ru"},"dist":{"integrity":"sha512-iT40nudw8zmCweivz6j58g+RT33I4KbaIvRUhjNmDwO2WmsQUxFEZZYZ5w3vXe5x5MX9D7mfvA/XaLOZYFR9EQ==","shasum":"48230c79f93790ef2775fcec4f0db0f5db41ca52","tarball":"http://registry-npm.ywwl.com/attr-accept/download/attr-accept-1.1.3.tgz","fileCount":11,"unpackedSize":20760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJ4q8CRA9TVsSAnZWagAA530P/0MtcGQNf4wQiCf7+Tqi\njxw2P/syP3Q4PQqIJ69hRxoXrQ8HwkgY2lqwKKr9oQRKitdIhKufdpjIuBX2\ntAaa/ESabvrM32VrtSlTOkfisUOMVRzgnZOpmIxjobvbNh+ksoty0MOhIpq8\nadBozV/7PDio04eZmuvdsV+4HhqI4O3H1hRSsOmO6bZayk7ZnGG2sjPq5YGD\nI/4g03IiQltoU59V3RfGaz2Xxym3JkWsGLn+Bqof8rudIdfsnevOSeD0MfY6\n76wYivAD699UFBuFUIIp86XTsNqAR3j7lyUhFVxNdKW5P72l0IWL7OYz/IkD\nJD3HA595ZSulgb/hSik+2I6KEhFz1xyMbgDKANuNjFRTN8eNtogXbcZwsmjc\nyOnIcCpzmhIiXYLzuRq2g86j85cImfMeGpCQzHne2a/u7J0EqZLv4ZzL080C\n/ht84COOK7JHaN/JrJheQpliuMO0K+8rPIBVm4k/zbfZl8APG3AuJFV1LCQU\n/EOyXYwP2qhKVySc9O3MX8VmOisnS3qVz8zvupAKU8elZUD7gSaDbEXUIn4X\nt1nIy2eBFuKZ5pneg9FAEzy7oYEbl5WOEHPltvl+qn/LBqF51wtEu2Lbf7TA\nR1n/xB3FRSs7UiApRvqi/JA/XoyOIvjP0FoSY+gXF8ZF5bw4bWos5Vk9ayT6\n4qTc\r\n=8fbm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGcdWe7YFXTyT4XPEoeCogmYGMZ8CGJZV5nRAlzyAGJwIhAI2irrPSQfAbJHtz1msBc0uoPzxWdCZLHe0uEFW5LxZo"}],"size":6786,"noattachment":false,"key":"/attr-accept/-/attr-accept-1.1.3.tgz"},"maintainers":[{"name":"okonet","email":"andrey@okonet.ru"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/attr-accept_1.1.3_1529318075747_0.8241974445104949"},"_hasShrinkwrap":false,"readme":"# attr-accept\nJavaScript implementation of the \"accept\" attribute for HTML5 `<input type=\"file\">`\n\n![](https://github.com/react-dropzone/attr-accept/workflows/Test/badge.svg)\n[![npm version](https://badge.fury.io/js/attr-accept.svg)](https://badge.fury.io/js/attr-accept)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nSee https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept for more information.\n\nInstallation\n=====\n```sh\nnpm install --save attr-accept\n```\n\nUsage\n=====\n```javascript\nvar accept = require('attr-accept');\naccept({\n    name: 'my file.png',\n    type: 'image/png'\n}, 'image/*') // => true\n\naccept({\n    name: 'my file.json',\n    type: 'application/json'\n}, 'image/*') // => false\n\naccept({\n    name: 'my file.srt',\n    type: ''\n}, '.srt') // => true\n```\n\nYou can also pass multiple mime types as a comma delimited string or array.\n```javascript\naccept({\n    name: 'my file.json',\n    type: 'application/json'\n}, 'application/json,video/*') // => true\n\naccept({\n    name: 'my file.json',\n    type: 'application/json'\n}, ['application/json', 'video/*']) // => true\n```\n","publish_time":1529318075825,"_cnpm_publish_time":1529318075825,"dist-tags":{"beta":"3.0.0-beta.1","latest":"4.0.1"}}