{"name":"attr-accept","description":"JavaScript implementation of the \"accept\" attribute for HTML5 <input type=\"file\">","version":"2.1.0","main":"dist/index.js","types":"index.d.ts","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"},"repository":{"type":"git","url":"git+https://github.com/react-dropzone/attr-accept.git"},"keywords":["html5","input","tag","attribute","attr","accept","file"],"author":{"name":"Andrey Okonetchnikov @okonetchnikov"},"contributors":[{"name":"Andrey Okonetchnikov","email":"andrey@okonet.ru","url":"http://okonet.ru"},{"name":"Roland Groza","email":"rolandjitsu@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/react-dropzone/attr-accept/issues"},"homepage":"https://github.com/react-dropzone/attr-accept#readme","devDependencies":{"@size-limit/preset-small-lib":"^2.1.6","babel-core":"^6.26.0","babel-eslint":"^8.0.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.0","core-js":"^3.1.4","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","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":"3c6de9bc50362610e340958a4856b5208d955786","_id":"attr-accept@2.1.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-sLzVM3zCCmmDtDNhI0i96k6PUztkotSOXqE4kDGQt/6iDi5M+H0srjeF+QC6jN581l4X/Zq3Zu/tgcErEssavg==","shasum":"a231a854385d36ff7a99647bb77b33c8a5175aee","tarball":"http://registry-npm.ywwl.com/attr-accept/download/attr-accept-2.1.0.tgz","fileCount":13,"unpackedSize":15335,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebZUhCRA9TVsSAnZWagAASlwP/RYLMwB6k70Ib76QgRAS\nZFTpGPmcsuQa6yXGbkJjBCSU5fMR2jSlvwuXwrLjSSLAX4bxtAXj8djY+QJF\nMEFWIAjl83ktYBi6BTCfdhCOwIsRtt7YVu8kglRqYDd8+D/6pC0b5e2WY9ud\nH/FumTKbjOQ/TXWw9bE/9K+f1v7QS1LM+uKloGdBbih5UOsMDOUUQYK65wYm\nr55otYPePpL97E1NKKeTTBo3mf478JJIKtS6i7F2hPfAcT25MS+6C4x65por\npi46nvGHPY01/GiPxKU7Qp5vTW4mvO5gNTscJnslv6I0OMlcmBoSCZRIa44C\nAqAsalUR7m843GVHdcDUePJN0MYENyeCLJAoOPzrM0lLRO/tfybuRv8BfwSv\n3FlzeW/GGWbxGDc0KDtrdPqodrVvQhROWUobBXEvRih4whUOlcNXLd4Yrd+i\n7ajMC70BhcBquSUqQIVkRJrf8AuwLq9Wx+AVKHOlUU2trmmtX6fCHWLOy6Ht\nHfxqH4o+P/lq6uzZFhD7FqPKnB6g+r7v8ibMgt3QOvbFc1BAPgp3LR9ucfPR\nbOxieufO1kNbnJAzmmIMCgWtwoSlV8V+y3qLbrXE9MpfHXvuI7zaAC/zpCbW\nmwg+iy0NPPTm6slLwd8t0f22YJw4ST4Fz94E7xPbh8Bh94NfOjX6oA1230eY\neV8Q\r\n=lWXq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu2tg1hbtP+GB9SemeohG9bihq74PW2O75mWck3ui7dgIhAL4tlL0sRi1JM/I5HuCYfilBcrlbnBg9rOSwEzdq/fqR"}],"size":4971,"noattachment":false,"key":"/attr-accept/-/attr-accept-2.1.0.tgz"},"maintainers":[{"email":"andrey@okonet.ru","name":"okonet"},{"email":"rolandjitsu@gmail.com","name":"rolandjitsu"},{"email":"rmarkins@gmail.com","name":"rxmarbles"}],"_npmUser":{"name":"rolandjitsu","email":"rolandjitsu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/attr-accept_2.1.0_1584239904847_0.10434967025017627"},"_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":1584239904983,"_cnpm_publish_time":1584239904983,"dist-tags":{"beta":"3.0.0-beta.1","latest":"4.0.1"}}