{"_id":"mime-kind","_rev":"13-f8932451fb5c4f7e6291e246f0c52a5c","name":"mime-kind","description":"Detect the MIME type of a Buffer, Uint8Array, ArrayBuffer, ReadableStream, file path and file name, with async method.","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"mime-kind","author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"version":"1.0.0","description":"Detect the mime type of a Buffer, ReadStream, file path and file name.","keywords":["file","type","types","mime","buffer","stream","read stream","detect"],"main":"./main.js","scripts":{"test":"mocha test","test-on-travis":"istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"dependencies":{"file-type":"^2.12.0","mime-types":"^2.1.7"},"devDependencies":{"mocha":"^2.3.3","should":"^7.1.0"},"license":"MIT","gitHead":"27d49626918ab4aee113d233b5a558b1c6ae3d40","homepage":"https://github.com/strikeentco/mime-kind#readme","_id":"mime-kind@1.0.0","_shasum":"3a755e4f44e8629d8beef2b71e7dd4281b4009cb","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"strikeentco","email":"strikeentco@gmail.com"},"dist":{"shasum":"3a755e4f44e8629d8beef2b71e7dd4281b4009cb","tarball":"https://registry.npmjs.org/mime-kind/-/mime-kind-1.0.0.tgz","integrity":"sha512-IaOhBMkv9Q3Vz7OVVcY8N4ra1Bie/1V8yvOZ3LMO8RDkrJRbijHKLh33/PRkKX3BkGa9i6bByzJvXn16gHHPDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH7PwFBoKrtsyWFMW50AVSYu/IjcWIvZL6JtczsijCRvAiB9/cct7w2qz3ht9VzGyefQdptvFDPYOmwaeiXz3Ksgag=="}]},"maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"directories":{}},"1.0.1":{"name":"mime-kind","author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"version":"1.0.1","description":"Detect the mime type of a Buffer, ReadStream, file path and file name.","keywords":["file","type","types","mime","buffer","stream","read stream","detect"],"main":"./main.js","scripts":{"test":"mocha test","test-on-travis":"istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"dependencies":{"file-type":"^2.12.0","mime-types":"^2.1.7"},"devDependencies":{"mocha":"^2.3.3","should":"^7.1.0"},"license":"MIT","gitHead":"a1a52f214e98012afdd5dcb07a7898eb1bb1a05f","homepage":"https://github.com/strikeentco/mime-kind#readme","_id":"mime-kind@1.0.1","_shasum":"35d7e6d6197c992c684afa9894967f80f90c8775","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"strikeentco","email":"strikeentco@gmail.com"},"dist":{"shasum":"35d7e6d6197c992c684afa9894967f80f90c8775","tarball":"https://registry.npmjs.org/mime-kind/-/mime-kind-1.0.1.tgz","integrity":"sha512-QRo8JWr/7kusB/wTc4NH/4Z5L4qQDZIOFzIENrYgNldoAVxXqw0BzA/3OYY+m1r7LsUY97rGVo3EGnMKXKrW4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKlZCyABdRiIoEm+p2xAZwlywPJ9hY1hRFY6JBKzNVxQIgAvo+2hEdBjcKZiVuQxr6Rk61JOsHbYeVL9KrSwMBMho="}]},"maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"directories":{}},"1.0.2":{"name":"mime-kind","author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"version":"1.0.2","description":"Detect the mime type of a Buffer, ReadStream, file path and file name.","keywords":["file","type","types","mime","buffer","stream","read stream","detect"],"main":"./main.js","scripts":{"test":"mocha test","test-on-travis":"istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"dependencies":{"file-type":"^2.12.0","mime-types":"^2.1.7"},"devDependencies":{"mocha":"^2.3.3","should":"^7.1.0"},"license":"MIT","gitHead":"9ced4b614c0df5f4d3861df774ecdebb318dec52","homepage":"https://github.com/strikeentco/mime-kind#readme","_id":"mime-kind@1.0.2","_shasum":"482aa74ce5792c3c3667e6b139d56ba9381bb160","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"strikeentco","email":"strikeentco@gmail.com"},"dist":{"shasum":"482aa74ce5792c3c3667e6b139d56ba9381bb160","tarball":"https://registry.npmjs.org/mime-kind/-/mime-kind-1.0.2.tgz","integrity":"sha512-lnBcrYmIY6u27Ql6XAj7MV4KRI2zMqXqpjnAeg3cLsUMMx7/iIKlYbbNraAwFKGyWn7aDzy+xlY8clf9GWEasw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC81866tnikiHVoV5+fOlKgmD8Tm11lQ9POvxirk7LtXAiB4p4nfD/cS9FNpJeMBY15zIclIVxTIZpD3vuXObgwx8w=="}]},"maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"directories":{}},"1.0.3":{"name":"mime-kind","author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"version":"1.0.3","description":"Detect the mime type of a Buffer, ReadStream, file path and file name.","keywords":["file","type","types","mime","buffer","stream","read stream","detect"],"main":"./main.js","scripts":{"test":"mocha test","test-on-travis":"istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"dependencies":{"file-type":"^3.7.0","mime-types":"^2.1.7"},"devDependencies":{"mocha":"^2.3.3","should":"^7.1.0"},"license":"MIT","gitHead":"3fb37f1454b40edb0609ffcd43f0be33e3fbeef9","homepage":"https://github.com/strikeentco/mime-kind#readme","_id":"mime-kind@1.0.3","_shasum":"22c20eaf70291c3b8a70822ec44d2a066fc92d82","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"strikeentco","email":"strikeentco@gmail.com"},"dist":{"shasum":"22c20eaf70291c3b8a70822ec44d2a066fc92d82","tarball":"https://registry.npmjs.org/mime-kind/-/mime-kind-1.0.3.tgz","integrity":"sha512-ftHueCIyGaDA76PsR4btOc+KICQ6HQwf+LMo957wwGq/chwBnHqJtAql7IPgo8F4EKgL5u3GhZF6ItC+8wv4BQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBY9MBxRx12r7SX3mgim6Dqi45eMGVBUCa3oc8Q8QnNTAiEAwWdiNim4hrvnhM++Qi7EveDK0PWRlcZ+CU3o+1UDHkU="}]},"maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/mime-kind-1.0.3.tgz_1455908121405_0.007052961038425565"},"directories":{}},"1.0.4":{"name":"mime-kind","author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"version":"1.0.4","description":"Detect the mime type of a Buffer, ReadStream, file path and file name.","keywords":["file","type","types","mime","buffer","stream","read stream","detect"],"main":"./main.js","files":["main.js"],"scripts":{"test":"mocha test","test-on-travis":"istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"dependencies":{"file-type":"^3.8.0","mime-types":"^2.1.10"},"devDependencies":{"mocha":"^2.4.5","should":"^8.2.2"},"license":"MIT","gitHead":"831373a5762f2682bd3de41a38128d3a58160acf","homepage":"https://github.com/strikeentco/mime-kind#readme","_id":"mime-kind@1.0.4","_shasum":"3cd586399e541bb31c149b968407f9896854501e","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"strikeentco","email":"strikeentco@gmail.com"},"dist":{"shasum":"3cd586399e541bb31c149b968407f9896854501e","tarball":"https://registry.npmjs.org/mime-kind/-/mime-kind-1.0.4.tgz","integrity":"sha512-6wjRGdF3NtOZ6ruJyUqaoUXyIubQZzoNiJlKE2QPK9+nAqXWduCmGpfkd9Nase3io5Lbl+OvYfAXQl6Tvpk7FA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEDMFj1gF4040/VBBTPTN/ZD8EKsqiaxaHlewmJuZRt4AiEAu/B+3DGt0P8R0ZeBbzB1uoaeOKRNEWnE4AGUPr7uWxA="}]},"maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mime-kind-1.0.4.tgz_1457811877394_0.8061312180943787"},"directories":{}},"2.0.0":{"name":"mime-kind","author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"version":"2.0.0","description":"Detect the mime type of a Buffer, ReadStream, file path and file name.","engines":{"node":">=4.0.0"},"keywords":["file","type","types","mime","buffer","stream","read stream","detect"],"main":"./main.js","files":["main.js"],"scripts":{"test":"mocha test","lint":"eslint main.js","check":"npm run lint && npm run test","cover":"istanbul cover ./node_modules/mocha/bin/_mocha","test-on-travis":"istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"dependencies":{"file-type":"^3.8.0","mime-types":"^2.1.11"},"devDependencies":{"eslint":"^2.9.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.14.0","eslint-plugin-jsx-a11y":"^1.2.0","eslint-plugin-react":"^5.1.1","mocha":"^3.0.2","should":"^11.1.0"},"license":"MIT","gitHead":"68d2335e35b0a21ba4cfdf74623d2205fa7ead2f","homepage":"https://github.com/strikeentco/mime-kind#readme","_id":"mime-kind@2.0.0","_shasum":"d6040f11386e23032ad6c2868fdebe0601870012","_from":".","_npmVersion":"3.9.3","_nodeVersion":"4.4.7","_npmUser":{"name":"strikeentco","email":"strikeentco@gmail.com"},"dist":{"shasum":"d6040f11386e23032ad6c2868fdebe0601870012","tarball":"https://registry.npmjs.org/mime-kind/-/mime-kind-2.0.0.tgz","integrity":"sha512-0ZsbQrae/ykLh9sim0dgdO2apL/vpQk3EExXzr54zjFsWbGl8nCqc6at1HI7HH0ghmAS5xVR7zMY0+U99oLf9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy2BS4JxaPR2FE6xdrusUT0S6aakAYzEnZBijw0P9D5gIgJzYwti7stz859bGoImxeH3Q2sMpCr0NcPci57hLoFow="}]},"maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mime-kind-2.0.0.tgz_1473265125098_0.23888822202570736"},"directories":{}},"2.0.1":{"name":"mime-kind","author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"version":"2.0.1","description":"Detect the mime type of a Buffer, ReadStream, file path and file name.","engines":{"node":">=4.0.0"},"keywords":["file","type","types","mime","buffer","stream","read stream","detect"],"main":"./main.js","files":["main.js"],"scripts":{"test":"mocha test","lint":"eslint main.js","check":"npm run lint && npm run test","cover":"istanbul cover ./node_modules/mocha/bin/_mocha","test-on-travis":"istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"dependencies":{"file-type":"^3.9.0","mime-types":"^2.1.12"},"devDependencies":{"eslint":"^3.8.1","eslint-config-airbnb":"^12.0.0","eslint-plugin-import":"^1.16.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.4.1","mocha":"^3.1.2","should":"^11.1.1"},"license":"MIT","gitHead":"f6d78836fba4d33a660ddf848467dc594f79a5da","homepage":"https://github.com/strikeentco/mime-kind#readme","_id":"mime-kind@2.0.1","_shasum":"abc78ab568c679eaf123a017a59b5d989d508465","_from":".","_npmVersion":"3.10.9","_nodeVersion":"4.6.1","_npmUser":{"name":"strikeentco","email":"strikeentco@gmail.com"},"dist":{"shasum":"abc78ab568c679eaf123a017a59b5d989d508465","tarball":"https://registry.npmjs.org/mime-kind/-/mime-kind-2.0.1.tgz","integrity":"sha512-fWH/J4zfPbCJt0dBYCLjYo7fBfFEy6aKNnGzKCy6E8FejuEfayQ7gXgnQItWPgPWsmd1CxvH1k0vWclYblN3aA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAL+YwrC4Taj99y6+gCEivj7+dv5HW65+z0J8IPsSCeQIgYnystq77m79uJQkiINCC/jQc9dfWMHr6bZ5iFZiGkaE="}]},"maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mime-kind-2.0.1.tgz_1477306549924_0.39866403746418655"},"directories":{}},"2.0.2":{"name":"mime-kind","author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"version":"2.0.2","description":"Detect the mime type of a Buffer, ReadStream, file path and file name.","engines":{"node":">=4.0.0"},"keywords":["file","type","types","mime","buffer","stream","read stream","detect"],"main":"./main.js","files":["main.js"],"scripts":{"test":"mocha test","lint":"eslint main.js","check":"npm run lint && npm run test","cover":"istanbul cover ./node_modules/mocha/bin/_mocha","test-on-travis":"istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"dependencies":{"file-type":"^4.3.0","mime-types":"^2.1.15"},"devDependencies":{"eslint":"^3.19.0","eslint-config-airbnb":"^15.0.1","eslint-plugin-import":"^2.3.0","eslint-plugin-jsx-a11y":"^5.0.3","eslint-plugin-react":"^7.0.1","mocha":"^3.4.2","should":"^11.2.1"},"license":"MIT","gitHead":"da6dc666ff15777e41ed7e91f5bf40592a68b628","homepage":"https://github.com/strikeentco/mime-kind#readme","_id":"mime-kind@2.0.2","_shasum":"5a43d5bebdeb082182224d9d263206329e57cdf8","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.12.0","_npmUser":{"name":"strikeentco","email":"strikeentco@gmail.com"},"dist":{"shasum":"5a43d5bebdeb082182224d9d263206329e57cdf8","tarball":"https://registry.npmjs.org/mime-kind/-/mime-kind-2.0.2.tgz","integrity":"sha512-2h7EUXQbwiub1XqpRcuMH105tWe2e7nadi1+1Tv6PLKP2MLOvuRFNR/9EeeAvhDEAASrZdvAT6G8SdqMmx0/Gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2J/9Ewz52yW5SxldrQ+TCVWL7p7mfzWdUZi5FPkvmlgIhANf5Ygywgz0NumbZqPJzlcpcacMTDRTMJW/asv8URhmg"}]},"maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mime-kind-2.0.2.tgz_1496236463961_0.3497098907828331"},"directories":{}},"3.0.0":{"name":"mime-kind","author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"version":"3.0.0","description":"Detect the MIME type of a Buffer, Uint8Array, ArrayBuffer, ReadableStream, file path and file name, with sync and async methods.","engines":{"node":">=8.3.0"},"keywords":["file","type","types","mime","buffer","stream","read stream","readable stream","detect","sync","async"],"main":"./index.js","scripts":{"test":"mocha test","lint":"eslint index.js utils.js","check":"npm run lint && npm run test","cover":"nyc ./node_modules/mocha/bin/_mocha && nyc report --reporter=html","test-on-travis":"nyc ./node_modules/mocha/bin/_mocha && nyc report --reporter=lcovonly"},"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"dependencies":{"file-type":"^12.1.0","mime-types":"^2.1.24"},"devDependencies":{"eslint":"^5.16.0","eslint-config-airbnb":"^17.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.14.3","mocha":"^6.2.0","nyc":"^14.1.1","should":"^13.2.3"},"license":"MIT","gitHead":"4361dcf3d264e4e89d6e3d73633e55475df74bf0","homepage":"https://github.com/strikeentco/mime-kind#readme","_id":"mime-kind@3.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.10.0","_npmUser":{"name":"strikeentco","email":"strikeentco@gmail.com"},"dist":{"integrity":"sha512-sx9lClVP7GXY2mO3aVDWTQLhfvAdDvNhGi3o3g7+ae3aKaoybeGbEIlnreoRKjrbDpvlPltlkIryxOtatojeXQ==","shasum":"23bb3aba03ed6a1ea8c4f6093a9c7ab7121a9cb2","tarball":"https://registry.npmjs.org/mime-kind/-/mime-kind-3.0.0.tgz","fileCount":5,"unpackedSize":13022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTeFTCRA9TVsSAnZWagAAjKMP+wUrIMJ4/kIWuAA58p8u\n2KVLORuuPy4evTiG5jWFuP9UnKPU80eG/yuW7NHd31IzvvraOjjvALin+noo\ni9dRtLSRBGqcXUV3rqSzUo9u1VKIfumJqJhdpd3ORNXTuUWEeuwwnLVGQU+u\nViGCCVzt/jjf0P5Dmh6hCDMciCnQ/8bYoz0v9itcFPzbC5znr7HO1dxUfwat\n4+PkPXRv/Bz9pwetqKePhafmJ3m07qW46p3ButbZ0mYZZcyzcWN66ot5Qkb9\nshfyO2W5+RC8XA2FPcSQD92l6yS6My1dl1RrPcCcyQ14oHaqOJf1jO/2uS6u\n2sjfbg03t8EIttgdkztNMdKlhtFifRNRyK46dKqaU+mb5CV2cMMVluCMywtn\nTBxH8pq54Q07Ni0MGatBZlbajRB88bwR+QB/cHP7NYX3biHoqwXI1RFre5d3\nRIkRQ4tKlLX1YLSdaJV5ZMogvq3NQSbMvzeAUYwtzkrNCcwcKZVdDzZAB9Ps\nFfX9LsSO3UaFlz9nlUw1vhaG3CSPLS6d769Fly+TKT9FuwachceBm1bWJinj\ngyLQ18Ro7q2cVlUsxt+2Tdd56lZnyMN69pli1JIoMipYuL2qU0g9mEhiayZt\nnJDmi2Z9o3u3Q/X6lEFwGjfDCyIb7FcjCZvxBZekw55b3qfaQlH//6qMk2mV\nHVVQ\r\n=IMTf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZ+1l7Dcxtvp+ksudGGhw8Iy46Ka6qB74are1sIqORJwIhAI7gW1yC73yvJ3a4q8uiuNMt92strpgwWtRd1gJ4FAt5"}]},"maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mime-kind_3.0.0_1565385043106_0.7911665150699925"},"_hasShrinkwrap":false},"4.0.0":{"name":"mime-kind","author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"version":"4.0.0","description":"Detect the MIME type of a Buffer, Uint8Array, ArrayBuffer, ReadableStream, file path and file name, with async method.","engines":{"node":">=10"},"keywords":["file","type","types","mime","buffer","stream","read stream","readable stream","detect","sync","async"],"main":"./index.js","scripts":{"test":"mocha test","lint":"eslint index.js utils.js","check":"npm run lint && npm run test","cover":"nyc ./node_modules/mocha/bin/_mocha && nyc report --reporter=html"},"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"dependencies":{"file-type":"^16.5.4","mime-types":"^2.1.24"},"devDependencies":{"eslint":"^8.24.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.26.0","mocha":"^6.2.3","nyc":"^14.1.1","should":"^13.2.3"},"license":"MIT","gitHead":"4c525a8a47ee82d969a9250482940788e935148b","homepage":"https://github.com/strikeentco/mime-kind#readme","_id":"mime-kind@4.0.0","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-qQvglvSpS5mABi30beNFd+uHKtKkxD3dxAmhi2e589XKx+WfVqhg5i5P5LBcVgwwv3BiDpNMBWrHqU+JexW4aA==","shasum":"e563af13813c137f4d5fcf950cf5cc19806fae1e","tarball":"https://registry.npmjs.org/mime-kind/-/mime-kind-4.0.0.tgz","fileCount":5,"unpackedSize":8875,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcQKl99sH/qBRVQaDyYGwF6JzB0u2Gw2OSklArU5woewIhAN3m1iBkdQopVuI/dFqI9kZwkYkrSo1nMeTf5NbWoGua"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjOaa0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9lBAAl1+kIHBK9vVW09vkHMECyXWN/LQ2Oi9BMOAWTueSraW7g2UG\r\nlB1mPi1XVMEIQzdDGNBDj6Ot8Y4Rn3if118V376TjsMc4wBihO5bpqwTgubY\r\nu88HDTJhNiVJobvfs90bGctR4qVacCXiuu8Xhhk+KkfKBcRUEQz9iV+83t1a\r\nfyGSI9U0UjU9bkRAcjbaJPvR8LQeaQy7WiCyNma79Eg7ZehKF46byxf2kXfI\r\noTmZ3TiUA3E8nOLLmpxYUcYSzQhiGlt6KBScFK9tn7/1gvFp9rEuf84rvp+5\r\nFsx2Wr163BPxrBzSURpDrpVZFM/MU1pD+dKCihhqVL+uzlMpVGeBO6asmXu1\r\nRhwaYQhmaJHm/4azuUpPL/HeXGuXlj2rWh5FtIv2DKnlPq3OlZxUTLJff8R7\r\nNghYVO/cL5N0uGyLWQs6BD5nPMaoADZbOmSKsytDztOjHbEA72PvRJVVfBGB\r\n1ba5hShhe7qsWigzvgTSyR7b4QMLgcuLMbS/v6MTnW8pMTwMkghEvg21rZiO\r\nkboidqDXcsBsddntf/Prkis3iO3FBtfEjqIpmXaxH4OJYlug2Vo2oE3BGM9f\r\n00+yYc7UUoKo3AFYWiPDfHTqAvQdAJgwYejofRE4Odw/IQZKsyc0OdAwJVsc\r\nycFXXprc5wgAr0VFsbQFbURUwaPMrVfO3KU=\r\n=6h2L\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"strikeentco","email":"strikeentco@gmail.com"},"directories":{},"maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mime-kind_4.0.0_1664722612264_0.04851457368110257"},"_hasShrinkwrap":false}},"readme":"mime-kind [![License](https://img.shields.io/npm/l/mime-kind.svg)](https://github.com/strikeentco/mime-kind/blob/master/LICENSE) [![npm](https://img.shields.io/npm/v/mime-kind.svg)](https://www.npmjs.com/package/mime-kind)\n==========\n[![Build Status](https://travis-ci.org/strikeentco/mime-kind.svg)](https://travis-ci.org/strikeentco/mime-kind) [![node](https://img.shields.io/node/v/mime-kind.svg)](https://www.npmjs.com/package/mime-kind) [![Test Coverage](https://api.codeclimate.com/v1/badges/5c3c2bdb323d9132a2f4/test_coverage)](https://codeclimate.com/github/strikeentco/mime-kind/test_coverage)\n\nDetect the MIME type of a `Buffer`, `Uint8Array`, `ArrayBuffer`, `ReadableStream`, file path and file name, with `async` method.\n\n## Install\n```sh\n$ npm install mime-kind --save\n```\n\n## Usage\n\n```js\nconst { createReadStream } = require('fs');\nconst mime = require('mime-kind');\n\nawait mime('.fakeext'); // -> null\nawait mime(createReadStream('./anonim.jpg')); // -> { ext: 'jpeg', mime: 'image/jpeg' }\nawait mime('c:/anonim.jpeg'); // -> { ext: 'jpeg', mime: 'image/jpeg' }\n```\n\n## API\n\n### mime(input, [defaultValue])\n### mime.async(input, [defaultValue])\n\nReturns a `Promise` with an object (or `null` when no match) with:\n\n* `ext` - file type\n* `mime` - the [MIME type](http://en.wikipedia.org/wiki/Internet_media_type)\n\nThis methods supports all kind of `ReadableStreams`.\n\n### Params:\n\n* **input** (*String|Buffer|Uint8Array|ArrayBuffer|ReadableStream*) - `Buffer`, `Uint8Array`, `ArrayBuffer`, `ReadableStream`, file path or file name.\n* **[defaultValue]** (*String|Object*) - `String` or `Object` with value which will be returned if no match will be found. If `defaultValue` is incorrect returns `null`.\n\n```js\nconst mime = require('mime-kind');\n\nawait mime('.fakeext', 'application/octet-stream'); // -> { ext: 'bin', mime: 'application/octet-stream' }\nawait mime.async('.fakeext', { ext: 'mp4', mime: 'video/mp4' }); // -> { ext: 'mp4', mime: 'video/mp4' }\nawait mime.async('.fakeext', 'ogg'); // -> { ext: 'ogg', mime: 'audio/ogg' }\n// but\nawait mime.async('.fakeext', 'ogg3'); // -> null\nawait mime('.fakeext', { ext: 'fake', mime: 'fake/fake' }); // -> null\n```\n\nWith `HTTP(S)` streams:\n```js\nconst mime = require('mime-kind');\nconst { get } = require('https');\nconst { PassThrough } = require('stream');\n\nconst pass = new PassThrough();\nget('https://avatars0.githubusercontent.com/u/2401029', res => res.pipe(pass));\nawait mime(pass); // -> { ext: 'jpg', mime: 'image/jpeg' }\n```\n\n## License\n\nThe MIT License (MIT)<br/>\nCopyright (c) 2015-2022 Alexey Bystrov\n","maintainers":[{"name":"strikeentco","email":"strikeentco@gmail.com"}],"time":{"modified":"2022-10-02T14:56:52.509Z","created":"2015-09-26T19:42:15.050Z","1.0.0":"2015-09-26T19:42:15.050Z","1.0.1":"2015-09-26T20:22:31.853Z","1.0.2":"2015-09-26T21:25:42.421Z","1.0.3":"2016-02-19T18:55:26.337Z","1.0.4":"2016-03-12T19:44:39.447Z","2.0.0":"2016-09-07T16:18:46.258Z","2.0.1":"2016-10-24T10:55:51.975Z","2.0.2":"2017-05-31T13:14:25.086Z","3.0.0":"2019-08-09T21:10:43.260Z","4.0.0":"2022-10-02T14:56:52.448Z"},"homepage":"https://github.com/strikeentco/mime-kind#readme","keywords":["file","type","types","mime","buffer","stream","read stream","readable stream","detect","sync","async"],"repository":{"type":"git","url":"git+https://github.com/strikeentco/mime-kind.git"},"author":{"name":"Alexey Bystrov","email":"strikeentco@gmail.com"},"bugs":{"url":"https://github.com/strikeentco/mime-kind/issues"},"license":"MIT","readmeFilename":"README.md"}