{"_id":"detect-file-type","_rev":"40-13c37a7680169e03ce68071f94f1f5a4","name":"detect-file-type","description":"Detect file type by signature","dist-tags":{"latest":"0.2.8"},"versions":{"0.0.2":{"name":"detect-file-type","version":"0.0.2","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=0.10.0"},"keywords":["file","type","mime","detect"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"a87eef7a524cd574ca1380b52bee2efcb6ead865","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.2","_shasum":"bb1d1eb6e93884b8703bdb678efe4d4610daec0e","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"bb1d1eb6e93884b8703bdb678efe4d4610daec0e","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.2.tgz","integrity":"sha512-dQkqiwFdYfluAdaKTF/K7NFlYjsJeCS4PlDoRtp9F24kkgqDZGscAXlRJqH38wlOjvGchD0e2pT1sR3RwJb7Ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmsCsovPvEw56E7w7noQbckQr1hXdOf1HZ0xx/lCuiDAiEAzgL3IY74j8kfuvIbjS1DbU/jJ4+QPnUFj3ag8mnU7MA="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.2.tgz_1469707642742_0.7372112791053951"},"directories":{}},"0.0.3":{"name":"detect-file-type","version":"0.0.3","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=0.10.0"},"keywords":["file","type","mime","detect"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"342fea4b3e9fb49f6096c06d7e42a49bec452081","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.3","_shasum":"e2e012303cb5a4371edeed7778d540d9c27caba9","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"e2e012303cb5a4371edeed7778d540d9c27caba9","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.3.tgz","integrity":"sha512-MUUgGEolgI8o/AUvIzYa6mzlH2G9IVfz5lQNt2DOOO7EZqpnEauYA87r/40KkiDPteK7K5F1Cofvbos+iT02sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGpe8Nalmm9Ib0IL/vpB4hA7khqe1Kfjg5pot+KneOTQIhAMznnUjP881ZFuk/hbZysemGNdMcoTKk1uha1lsR/zxW"}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.3.tgz_1469708712918_0.44400551030412316"},"directories":{}},"0.0.4":{"name":"detect-file-type","version":"0.0.4","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=0.10.0"},"keywords":["file","type","mime","detect"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"fbf6767743ecef447d1151b0e468f9a221cfbaf6","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.4","_shasum":"4091ea71a11a941ad49627e94c57393db504bafd","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"4091ea71a11a941ad49627e94c57393db504bafd","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.4.tgz","integrity":"sha512-SBEe3cRrB8xVz/zBHf5KNNIGMN0PxhbIKSnQcC461pc/KH58+o8x01404DKkkMms/DtRrMSnvCb3faU6+T74sg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAX6aQFDQrZE6DR7gWkXxXZM+b6BIOF2MVpRohhSUoySAiAF4fXbU1BSDQTO/C+jn/Iz/nM8bu5+DpZBwFIIgj9Kng=="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.4.tgz_1469709556755_0.8331308392807841"},"directories":{}},"0.0.5":{"name":"detect-file-type","version":"0.0.5","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"abc213bf768baee71b0b6f9a49502bc8537cc3ba","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.5","_shasum":"0e0c4386adaa94f595ab3ae0c52717351b5684e3","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"0e0c4386adaa94f595ab3ae0c52717351b5684e3","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.5.tgz","integrity":"sha512-Xxf1QujKqlm+uwjtPbZnRgscOGniVzHM8jIaHapCS7dFDR0lhaO56r1LjyRKyWgZPkY8Pqw8ZpuJ6grn5wu6yQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt/B8NBndsnfTqhriY11TI9C+YSat1ZI57RmuZur3WOAIhALiSH3kCoFwr3A63Zt+d9yjR6TqDFWdK/2gGpBSAFk3S"}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.5.tgz_1469794287097_0.43435864918865263"},"directories":{}},"0.0.6":{"name":"detect-file-type","version":"0.0.6","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"42b3023af40f8d5d788cd460068c7f73145c2b60","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.6","_shasum":"08e890b6d4d8b2f897a77f93f3197a61b8a5ff2d","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"08e890b6d4d8b2f897a77f93f3197a61b8a5ff2d","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.6.tgz","integrity":"sha512-i9A7u/SqMkvBw5sxx/tM3ae2cfs579mREXRJ1aFWgL2db69ts4nFqzVl+1Sa54gVFY2D2ea+S9U3Jv0BZMxZGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmvIL1ylrKmz21YZKUcWtimM3bDLdLeF4Cu5LhyeqdjgIhAOvOf5grmSHLXqiGF+kvkjcaEBqg62m1loGiseaC4QHx"}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.6.tgz_1469795018457_0.4867450085002929"},"directories":{}},"0.0.7":{"name":"detect-file-type","version":"0.0.7","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"7c9bbec932948a76309079597cbce5b66b37cc41","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.7","_shasum":"0d4920666d881c715d980695880588298c1c9535","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"0d4920666d881c715d980695880588298c1c9535","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.7.tgz","integrity":"sha512-ASyUNsWUZftLKUs61vb9utm9eA0JIUyq+oNxUit8v9imUfMqrmtDXf6oiZZnpqdIOj8ijeaF9P3HOGRt/0tczA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrlLdZW7Xe3tTwkng0/sTU8sB2qj5u9J9nr4JAy0YQewIhAI3D5iIiq8gwHWtrmDS7COhZL9jrd0bxCLeFVoz5445B"}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.7.tgz_1469799222874_0.9518017345108092"},"directories":{}},"0.0.8":{"name":"detect-file-type","version":"0.0.8","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"e6c79ca558349c3f06e7c5dc60b337d1379499a8","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.8","_shasum":"3bf5dcb3101a2dc7c41a8157ac3ddb5243c535dc","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"3bf5dcb3101a2dc7c41a8157ac3ddb5243c535dc","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.8.tgz","integrity":"sha512-M0bBf50n0NJpc9XGvticTgBHHjjT7AXVoQULaT42ECVSK7Hd2Wor75gkwAHhkMn0m96H1ztFty8n9ry1cG6Mfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbGO8w0nWEjCSfkB2Ot1QWbs7krscAjTvvx6v6XFxjQQIhANmVW/gVUE+Rj+Hwo/KB5dMviDir3VQfWFziT8dZqBEO"}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.8.tgz_1469799621173_0.24478630907833576"},"directories":{}},"0.0.9":{"name":"detect-file-type","version":"0.0.9","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"e23bc543b914fa7816a4865376696dc39500deae","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.9","_shasum":"f8f7067d1157d29d32fc59256d68e8e0b76a3eb6","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"f8f7067d1157d29d32fc59256d68e8e0b76a3eb6","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.9.tgz","integrity":"sha512-VfZvHa9nbrrsWf+BjZ3F89tr6tFFN9v2NU/fvC9zodJxSE6Eg7phjqXTbKCeerhYDMwiCzhC3TkNZtIKpeYFsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEXVRSplRdoW34BxeLrPSB4mPsiH6SA940t5kGck/Xq9AiAvauFldZhqnNRQezNGYMP4RzYICcYqfDrHOepp3JGwxw=="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.9.tgz_1469802401730_0.6317793000489473"},"directories":{}},"0.0.10":{"name":"detect-file-type","version":"0.0.10","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"4de64144a71b1da50d8964bec29ea9103e45b405","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.10","_shasum":"07a803f4f9de8da47b023b9514888aacf799a892","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"07a803f4f9de8da47b023b9514888aacf799a892","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.10.tgz","integrity":"sha512-aonRXYw5jzljy47LgflDum1mMIj7f2SL8pVvi988xz442t9FpC8nXu6BRkmVDrWH2W0UYC26H/wiGtuewlvAAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0zyCLiSJqh5LxM+MBUsJvKM6VwFC2rwDJ1QIl1N5xyAiAzFwv/kOgjW+zc53AEJ6iYZzFqioZHumO9qOV6b5bHrA=="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.10.tgz_1469803335761_0.8644128644373268"},"directories":{}},"0.0.11":{"name":"detect-file-type","version":"0.0.11","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"7090ae9e63e7bd831c348c7c81dd8f1978b159ec","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.11","_shasum":"42d12ac82bc3a5eb29991e6ecef402df0a34449d","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"42d12ac82bc3a5eb29991e6ecef402df0a34449d","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.11.tgz","integrity":"sha512-BB81bfdS9X3/ERBNTbr3tEVFO577kizq0nTCu0ugd80ZUhi7BaWU1nRT972wvSIQi90L4krLmI9a4vO2n5DXIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbmWjGjC2yWc9CMLG1pKttLw23GuVR8abtSRENYsQApwIhALx2Ie2j3n0/zT2xg+g9lAK1ug5MyuSwPIvEgM8eI7DT"}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.11.tgz_1469804035820_0.5650735180824995"},"directories":{}},"0.0.12":{"name":"detect-file-type","version":"0.0.12","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"59a857b276cd739210d01fca79eae148fe3fb83a","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.12","_shasum":"a7ad296290de783f53bae151bc15b242c49a1758","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.2.2","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"a7ad296290de783f53bae151bc15b242c49a1758","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.12.tgz","integrity":"sha512-+NC/Fcej8yoUWULM0EJB02jNPeawXBDPkLBGxxVR0Heifnthmn78B2q2eTotqgrnuewy8SejTe2VI+a7Brkm4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGtTd+YgbdliSpovQEeO8jJw/8ANoXMPgjz++v3D03iAiBn+CpdFzpZy0wHqe0aA2rpb6tA/SYkpze2GduZhWn7mA=="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.12.tgz_1469806732839_0.7143786319065839"},"directories":{}},"0.0.13":{"name":"detect-file-type","version":"0.0.13","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"e7957da228c2dd9e70b36030bc24bf162e4efc72","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.13","_shasum":"56cb99b4d17b999a9f86535a5f280816c322b7c3","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"56cb99b4d17b999a9f86535a5f280816c322b7c3","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.13.tgz","integrity":"sha512-OA6iDzHMJtdM7DSbNp3zBf9beoQw1H5+V1FW8CWo7PajsG2kHRGBSjHY1Lz7IThpanRvqFb95GplXLx2uVVQlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDGh5HVaWr5vkOb2aObU0J78fBz0GqjDuf3tVXsMiAVgIhALVb8COs7YBzGTn4Fxp5GD7ITDFkl0qf4H13C7YaUdT2"}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.13.tgz_1479282637640_0.06750969984568655"},"directories":{}},"0.0.14":{"name":"detect-file-type","version":"0.0.14","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"787706d5a73bc0f0a98118c6b53c41c0541ea565","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.14","_shasum":"6ba792cd69c0361a2ebe3bef2a051074caacfe70","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"6ba792cd69c0361a2ebe3bef2a051074caacfe70","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.14.tgz","integrity":"sha512-jJvxsa4+Fm+3uTAmRDx4pcYgt93Yj1iSQdYzFUAxbrkCk6YxtS+og57LIxCBbLStpO0Z3nwMzwd9BKOKmbJJrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv/EMWPDCtwQ0SE/PXvDGlC7egDNIbPi3ut4Wy0HiWsAIhAJO4NmUDYC1LGdYHnTORZaGlpzdOpH98Kh58jP79+U4A"}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.14.tgz_1479282803825_0.35831626900471747"},"directories":{}},"0.0.15":{"name":"detect-file-type","version":"0.0.15","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"efb01f29c4f016bcb06b337f8c80dff559d28d09","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.0.15","_shasum":"10e7d15d691322ad335ea3cc463a0f1dce4bea25","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"10e7d15d691322ad335ea3cc463a0f1dce4bea25","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.0.15.tgz","integrity":"sha512-zE/5eukAFP8yyKCptD+rvh4gJZjvgG3qhTGm1IJNDJX8JPpk9ebfxAdk7a2zYkfKMhMq+EFM+wTVmMr3tshzeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGiNqFFb+UEKLRJjFddGd3Eg7J5lxoimA0vbAk6TUdwYAiEAqZVSCyaHwhw4D3eTGI1BbCJp+88d80qpebwCkNqdx9g="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-file-type-0.0.15.tgz_1479283291011_0.4958955959882587"},"directories":{}},"0.1.0":{"name":"detect-file-type","version":"0.1.0","description":"Detect file type by signature","main":"index.js","scripts":{"test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","is-html":"^1.0.0","mocha":"^2.5.3"},"gitHead":"c1c1e3572b6d7f1f97da51c46a9709b70c56260b","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.1.0","_shasum":"43c73c7bc192fa2a616ba8bb3bc3159628c33974","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"43c73c7bc192fa2a616ba8bb3bc3159628c33974","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.1.0.tgz","integrity":"sha512-Rc6tcP9egiPdW/kNjsJeB3xjYA0YpIspccRhi/33nS6oVZtIliIrjVTZg6AH1OZpL1JfStm+42RxcqIcAzMQvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ42cIjkR0QHofaX3YrhMZz1ACKMRQyD9u1fSmMfKYjgIgc7mANgkZx0w9hTlp/68PphIXzcyPBZBTjF2ZhyE5lEs="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-file-type-0.1.0.tgz_1479285878917_0.1441801015753299"},"directories":{}},"0.1.2":{"name":"detect-file-type","version":"0.1.2","description":"Detect file type by signature","main":"index.js","scripts":{"build":"./node_modules/babel-cli/bin/babel.js src/ -d ./","test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"files":["index.js","signatures.json"],"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","is-html":"^1.0.0","mocha":"^2.5.3"},"gitHead":"bffe6f4f3ce4d9cbd9c901d2624131103c7271e8","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.1.2","_shasum":"3efe9bd87c7116e5a0d169d64114cf2e15d4f35b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"3efe9bd87c7116e5a0d169d64114cf2e15d4f35b","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.1.2.tgz","integrity":"sha512-/pCQZJf1DUrUwKZkjpgGgEBqGmeRNIJPdUcJmeR15UGtEdQ5ti7QqsivXhioVY/BoFpkf6xWVa7j2KGarTknXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaQ6Sln/HP5dYZ2YY880WHmtafCnFl39zkaVSLdG5pEQIgMxFkQmk0N/VHIUmvhT0n1My9T7Bib8i20l0xrXtL4L8="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-file-type-0.1.2.tgz_1493828164011_0.933647220255807"},"directories":{}},"0.1.3":{"name":"detect-file-type","version":"0.1.3","description":"Detect file type by signature","main":"index.js","scripts":{"build":"./node_modules/babel-cli/bin/babel.js src/ -d ./","test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"files":["index.js","signatures.json"],"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","is-html":"^1.0.0","mocha":"^2.5.3"},"gitHead":"b5a9be07bac86453b838d7a408846c1e596c569a","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.1.3","_shasum":"b2f3fd6cff706c46d85a0e09643b1debf32745b0","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.4","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"shasum":"b2f3fd6cff706c46d85a0e09643b1debf32745b0","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.1.3.tgz","integrity":"sha512-knWSLwIHq4ifLDHwFaH0KSWe47N9+Ahpo5EjtzlP8MIgP4jbMdRGQUon8bEMb2WVGVQJsLuVSyv0fNo7nE0EaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCajwTgWE+srpnKSxojZD519FcAVVxEqQVbLlPMx9r+LwIgGZTcp1ovsVOT5gC1ufbZz6wvz3BZmpNVvUIgrZ8W2k8="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-file-type-0.1.3.tgz_1498031238718_0.5609211693517864"},"directories":{}},"0.1.4":{"name":"detect-file-type","version":"0.1.4","description":"Detect file type by signature","main":"index.js","scripts":{"build":"./node_modules/babel-cli/bin/babel.js src/ -d ./","test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"files":["index.js","signatures.json"],"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","is-html":"^1.0.0","mocha":"^2.5.3"},"gitHead":"9ddd4060f7567aea4beb2fc72fc296ba5584d7d8","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.1.4","_npmVersion":"5.6.0","_nodeVersion":"10.1.0","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"integrity":"sha512-YhVJHQ7eBGrdioUMAAMaeXcfmOheHdbbvBG2ngk1I/39Go4YPQ0HOyd0gdWFt1iJLwkeggZ+TUSNlJE+mAgdPw==","shasum":"f5ddae8b7e08e5f3074ba0147da99afdff8b8e54","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.1.4.tgz","fileCount":5,"unpackedSize":30829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbQxlSCRA9TVsSAnZWagAAzQAP/Rp/F3mlBqvuDy/wk2oF\nKgdT0+teVmjHja4UKugTvz4gny3cCJEcZDSsQpeGCY1UdGM8ux6q22Lnb3Ff\npjtl+UUjzhvI178z81lCbvSJt6KdMB4Fl9yxcTBDmj1vnrUmjVph0p+3611U\njIWx7dEhylW14/BQFFuXj3L9kXlMeMuvoKWDg87BVwCfCMrKg5Tin0vAP6fy\n8jv4DSrfdKkSbRNP4KZUxrXBATeiNrRe+qjLe1N6KboWkwenIDX7pRwsm7Mh\nMPycNn4DgmcJp35/PE/dtxA/8n50AmqFHdZ5VwDh0ieitcwp+3AdGpv4/I00\nvfVcjVG/ax74P1WaOgHDiEzVkNFhU7DglPs79386YAl4G930OxtDUm7xnGCV\n3rlk1l/EnB6ogNg4g4FJuwfDvoKSnysJYivYjz5JAmEkBliZmC3UQutFii/N\nwWjpoTkhEEsn5JXHam6t70ReBepop+rsJ7G1GTiFnkk75BRevfmfd8PHYtQW\n/y3L7ilNlL5OXKP/ivgOWHEbmz88VfRVkhea63RUi6J+rDaFuixn6joW9nRg\nwPXa7gHrqAg7MReJ9+3bxXgiz4xqXxB+4HjDDb0WOchuAyFnplqv8h+5GZPH\nIqsrknpjfJPYoNO3U358nLhJ/PgsHrN8Mko59up1xvQOuXe+Clq2uquc/cV0\nF892\r\n=beze\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ7df3GjYzg4lWvVAXxhl3KdSMcCTqX1KGY+n39v29YQIgexPROsXxD+rX/txCsePflNCnAass4Gs22ZsYIbdX2cQ="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-file-type_0.1.4_1531124050716_0.031232754129670193"},"_hasShrinkwrap":false},"0.2.0":{"name":"detect-file-type","version":"0.2.0","description":"Detect file type by signature","main":"index.js","scripts":{"build":"./node_modules/babel-cli/bin/babel.js src/ -d ./","test":"./node_modules/babel-cli/bin/babel.js src/ -d ./ && ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","is-html":"^1.0.0","mocha":"^2.5.3"},"gitHead":"ed97443298172e72be71a5123b683a6098c56184","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.2.0","_npmVersion":"6.2.0","_nodeVersion":"10.8.0","_npmUser":{"name":"paloskin","email":"dima@paloskin.me"},"dist":{"integrity":"sha512-RO/pUyKObaN3KZFVAxTzq6zUIweCu45deaUj2ZpbA1wCrmHeHYHpCXT6ZMLtlMtYSgEbpGuCxzQz8a9IuwOfNw==","shasum":"af47f7963ebb2aea2f2bfb9320b6ca468d8b97cb","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.2.0.tgz","fileCount":5,"unpackedSize":31078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbxJZaCRA9TVsSAnZWagAANc8P/Rop3pgIdjC2qTCD5Wfa\n/e1u3rifKS9PJA9YXlDSMcno/FGVp7DraR36HSbgSnS71sdJkBUkXxQ6xMEI\nUoP9jEZtVCW+rvngIdRPQ6dfDQ+dIWY7nmFQxW06uGdqZrv4pV1+qbQXE4eX\nY/YjGnsZUckAU1dqcOoAso8lr1zLk1Nvq7EGN1oGMwUG38eXCwK8IaJanMOd\n1Lf+30om8y9EtvsAZu45yifaZaYdR53P11bVZC2vxg9RMJsKMGM+YavXNVD9\n4nBJc6s4WkBjwKtzIHRfskZUXI9EDylxnx/tE4nsxH+a24pFm6SaAdiHlTam\nJy97OrD5ScTjUaZCj8cLfxwxo80HvJxgscV2ArWOTMtqo/JR3aFjBcWgZOA6\n83aXZBec9GUxuhproUA1/mMM7P+zWBUvCneXJv8ZUtrVsu/IvFmbSksC5rH0\nUKgHxYciAWXi4N0f6ggFaA6wLqVI8R7gzFPgJ5FnA52cp2lW1Z1ywosqOagK\nSVVVgxHDrN8jib9j7ZxiNjJvJbAqEqhQMSei32Gb0YMM+4RxwsBOrgyNgnTK\nwFddTqgtOlyb6tqE7CNdGyJsyDlR69KlGOhRSZ0N1FBUre9oXmji7JZWNf3A\nTth5Z/IQtZOVO+JPNUbsQvZXrHzUYVM24Dft3nJITUogb6xFOqOLw9T3VvoD\n/LpF\r\n=YG0h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8DbUNY/OP858UEQQsyVRz1GpSUbET1bAspKbJjh8flwIgJI4ZQprn95bB1kMFNeOYqkYl2z3vHLpv3u+tBE2uI3A="}]},"maintainers":[{"name":"paloskin","email":"dima@paloskin.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-file-type_0.2.0_1539610201987_0.46548112410126574"},"_hasShrinkwrap":false},"0.2.1":{"name":"detect-file-type","version":"0.2.1","description":"Detect file type by signature","main":"index.js","scripts":{"build":"node ./node_modules/babel-cli/bin/babel.js src/ -d ./","test":"npm run build && node ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","is-html":"^1.0.0","mocha":"^2.5.3"},"gitHead":"1046f4b834385d0e8732fdcefa096b5ea5dfebf1","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.2.1","_npmVersion":"6.5.0","_nodeVersion":"10.15.3","_npmUser":{"name":"danielgindi","email":"danielgindi@gmail.com"},"dist":{"integrity":"sha512-xWMP2mvBYl9Qwrpm7YB2soqgn/IsdLcgsdgyp4G8oT6b5hZltLD0/Wp1VX18Xtz8TXP29JOkdELeHoby4+p4yQ==","shasum":"3368d4d2dcfd98824857852754f83bbb41cae2b0","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.2.1.tgz","fileCount":5,"unpackedSize":36087,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcly0ICRA9TVsSAnZWagAA0Y0P/1TRQYqFyRMjLMzp9z5X\nPOs9dONRiYfjztp3gDsMy5yDUDGjzYWcQepWjljagDF3fqJVCfd4gEc6pjET\nLRMDHaTgFmH9CiBmGbPW9/ifGEVgpEVVY1UOd5b+p8aI1UdUGdcb3RlhVVhv\nDvmtXF3x7C9D9PjvW82oa/p7CK8tqMBvDf/R1m58Nl/v0gDxsGqCCWuxLTZ3\nsUTDKQFCtaFbjVBbQQVESQxTilxK79Q58wU2rahrOexm/fdExWZeMRgN4YVo\noW7/b3HwuS/DNEZ9YS/1yx3P2njbO57Xu7Ply1Dfabw/qTVXIf1Dd+xfMDxz\nddxX5Pdiz0mKpohXX7jMVArwNob3j5kqybizNF51jNGoWezTPEcgd0Yzybtl\nP9t5uIl3Mk7OpCQLs1kruSKE9iX+IqQ0me43UPyg5uB+7iRDhDM3glBaWF7Q\n1bgoZmnDbqqvFpGfQTQKTIYbbTznqQ2yadiIBwud7mabDzwUvvoTskq8cygC\nPae8RvAofLS5ED1Hm8cy+RIiRPupBP5HQcoAK8fAgt4TQWbaL37yM8fCheLV\nXPDzSerDWuPRiAlnlhgIBTC+4LELoPZyBWZMu5nDf/x82hvdhxzC1a6Tj516\nHfx6REyeHPTt4NQrwjVr6pARARr1Hml1CbSCIUlG8u3PFHFWiOacR23tkQo2\n9Mif\r\n=fEG1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCYILnS2JBTqDlg2mHgymga5Gsn+TBtOtLVGThKwpR9gIhAJOXmCVEZe/+bo5uoh5lws+URISoLLnfhDM1tCP9aFkP"}]},"maintainers":[{"email":"danielgindi@gmail.com","name":"danielgindi"},{"email":"dima@paloskin.me","name":"paloskin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-file-type_0.2.1_1553411336345_0.2937601159621037"},"_hasShrinkwrap":false},"0.2.2":{"name":"detect-file-type","version":"0.2.2","description":"Detect file type by signature","main":"index.js","scripts":{"build":"node ./node_modules/babel-cli/bin/babel.js src/ -d ./","test":"npm run build && node ./node_modules/mocha/bin/mocha test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=5.1"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","is-html":"^1.0.0","mocha":"^2.5.3"},"gitHead":"202a5b8906a5ed9a69727f51134a0b8b003bdacc","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.2.2","_npmVersion":"6.5.0","_nodeVersion":"10.15.3","_npmUser":{"name":"danielgindi","email":"danielgindi@gmail.com"},"dist":{"integrity":"sha512-oGzZ68RV20dDgMGxeu/cxgVl15JMRquy4iJBy8xxSxtIg6WgIuvSyQNKBdRVlC7k5xx6NV2rgCtuDbvvVm529g==","shasum":"4a619e38e0f15824bae0d973f694621e18504e9a","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.2.2.tgz","fileCount":5,"unpackedSize":42290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcl1vtCRA9TVsSAnZWagAAShwP/3gkr3ULmrlws3YYONfM\nf5H7NjLjUVdDjA9GrBeZmxdr4xBPlmTgc8JTJF95u6MkaXX+HwlThCc3TJZn\nW/Sc8aRPepr/aN/w/lRKBVZQct6zIrkUjxI3euznY3G9hsdBlnB1AawJTxKg\nVcx458mv8BU0SDcVYjhPD94gvGAQu6BbGOTUdHQkPSeQjlpjp7SBxcHAWHM2\nzUpK7zMecL54niv9xXDR7zHg2jOAi18sY1dXO5MgreeyBzAPEsIrr4ihpmMx\nr8arhOZuDLg0pELbWWNTmWjIIxGi4yB3HybFVsz8+qj7OOXo/kZmcNp5rdt/\nDGXedmlb0t2lUBDUFw51KNJId4Yp8kJxWdG1w8nghR9rOKo6R8+H64TEhoir\n+ZYWta58mqYdUb6LppS+17C/+2Jl+4J2o28U0p1Kpcy3+VBo7FLgqAqj7eDZ\ngHVgZAOWT2mll4aXozz8edumSUpFNPLsQKkb3j9p6eSid+vXFDP/Xqnv+vHQ\nVJRdSjCu7whTFVrTxD6s7HM/Jj9IJ+i809HiocsKEZvyBfwQ6pRu9oTf3LRO\nZXm/yxX6tl6Y5BQjiWfNw3ngR2qraeQX/PJ4k+xe/SUkL0PKbITtCjzZWjvw\nzEtnA8uOOExBPA2W/xkO3MoVqqGwDYIMYNg12b3iTC39lzrK7em5WZQ4ObFx\nbOCk\r\n=MRJD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHTikrYcjg0UoPSIsSJftkVQogV+yTuKX9T10qRYh0iQIgHjursq19hdAKRmq7tH0B+g4afUPpW+yxJ2f/n5nAwBo="}]},"maintainers":[{"email":"danielgindi@gmail.com","name":"danielgindi"},{"email":"dima@paloskin.me","name":"paloskin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-file-type_0.2.2_1553423340812_0.6964192026915357"},"_hasShrinkwrap":false},"0.2.3":{"name":"detect-file-type","version":"0.2.3","description":"Detect file type by signature","main":"lib/index.js","scripts":{"build":"babel -d lib src","prepublishOnly":"npm test && npm run build","test":"mocha --require @babel/register tests/test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=6.0.0"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/register":"^7.4.0","chai":"^4.2.0","is-html":"^1.0.0","mocha":"^6.0.2"},"gitHead":"88675abae036b165e807d3e5ce1fef4e779a616b","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.2.3","_npmVersion":"6.5.0","_nodeVersion":"10.15.3","_npmUser":{"name":"danielgindi","email":"danielgindi@gmail.com"},"dist":{"integrity":"sha512-9BxNBWp+UOpHSKnPCfPUpoAk4b13erMsIE4RXt8a9m75nQULmsyDjnuL3/ea5+8L/C/+VgwQD4EVlgMf7AVfnQ==","shasum":"9c2929730b74cc71d568e8fdb04b77752ea53b41","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.2.3.tgz","fileCount":5,"unpackedSize":44892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmLdhCRA9TVsSAnZWagAA76QP/2cpdzE02NuzMpyAb+5D\naDP8eHSxy6TcQvw7Up+6ulgRDy3LSntL9d8pzuQpcnMQxcsIAygnpF2kWzSX\nftFjZX3sYHXkBLf9Rdeze8TWgzNFogBBqBNO3dFrpgIqDuqMyPFDsmHuvE0z\nvZEeOzcC8PhksqbEJ5INOut2zVtES8CIQfnmaHOYkTkNKbHP15Og8bLdcm5K\n6sv3f9/Y4FkjcbJmbDMCQFNUCq1xeFNzse+Q17P/35utqq+5xyIzimru0UXI\nE7bxiPYmhNA2q9xIOE6p7ighGuMDOsFi6F/Zj8RC3xCaDs8pVWJYKfFscxC0\nrpZINwfXYca6dtBd63fWXatz9POydN1HWlKrkEW5aaEkYZQCLMye5uFkDl34\n04VDiSgYQALwyR+fAiKl87N9+y041B78VmhS+nDgMGHqdoN3wGyrAQ0OM05F\nOjF/Qe6Ho0ZRBIG4RJeefWuLd29yuxfXyCbV1cS/DifOMI7dEUcp4DBL2+1O\nisdYDS/RZUPv2SaY4tlQjPcXNBXhy2PITfpe/e519qsyT9g1jl4LFB4NzaFg\ns5rei1kYdO197N9GK7P95F49p6uy+Kza5hm+ypUl211D4ATLu9om1af+bHQq\nlQkN1CC9EIqcnBDDetwx6tADeOvewANodUKX2J7ysMThyLtWkRKY173iwbLo\nj93o\r\n=hDBt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHqOV9vMXQzhgQcor5fZJY3wUt37DBWn+CBeEonU2H+AIgBn5dmsHa8fvsClGe4tJSilG7lLhThViNBEs8GvR0dIg="}]},"maintainers":[{"email":"danielgindi@gmail.com","name":"danielgindi"},{"email":"dima@paloskin.me","name":"paloskin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-file-type_0.2.3_1553512288841_0.2184546553618094"},"_hasShrinkwrap":false},"0.2.7":{"name":"detect-file-type","version":"0.2.7","description":"Detect file type by signature","main":"lib/index.js","scripts":{"build":"babel -d lib src","prepublishOnly":"npm test && npm run build","test":"mocha --require @babel/register tests/test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=6.0.0"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/register":"^7.4.0","chai":"^4.2.0","is-html":"^1.0.0","mocha":"^6.0.2"},"gitHead":"cee657d83c4be8492dbad48ca9aca49cfd95c3df","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.2.7","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"danielgindi","email":"danielgindi@gmail.com"},"dist":{"integrity":"sha512-T0/Px+07CpnG4tl/hS4sgljPRFCpaheTMJlRh5zmbWr51vhppXm8Jw44KgHPnQ3t12+29XkB2jWIoB1Wb+PyDw==","shasum":"3b130f1bc7b54f7ee0eeff3607c9957aefa202ea","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.2.7.tgz","fileCount":5,"unpackedSize":45070,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUDSDCRA9TVsSAnZWagAABTkQAI/ZII2uSKoL1UxGNBKl\nNJ9JBVoEOZ1MlO0gedFaqCZKtK6tTUBI6B1Cu7xlqEhh5eZxUPklkdAkRqVt\nioEq47ZVXFT0H8nVWFBKuk3B3PwJaxZ4HyR/zMBFKl8g16OCqYEyfYX3AICC\nZyT+wu4jRssCc5PLTWBI3atp5XzoiMcs+8uo4p51xYCsrQrjN5Y2EzsQ9XfH\n9Gnuk/SStkjjl/VVRSRrKfbZhpB9V8UgRxou7jUcoDrkDgR5CQpVJYDZpSSK\nKCtBLS7GwXUWjPA9tYr2clu+kRAc72H9p4Y/rVntRgbl9aSMspJ11c7Wy4Aa\nbpXgNrb39x9Lto4cDpNQT6z4rSF5MxsLqxrVBYu8D7PSkPH3PdSEEHwkccCK\nNKHl6XIhjIIckWDjt42FlPs3XtHqLsxW5n19HaghT52NRU55isLQEb18LPRq\nEleEf4PzSi7KQGqHIU2vGB5ImgWW/pAGyIri2BWZjCkQPSC3AIGVGD9ypG9A\npIZTv9waJIfwcedYm5vZmV2gzeLj7ZUzx0/3GYq5A3Uuq/KHYT5w/87bkLmD\nXYUD7x8XpRacW3qCkqbsXGnoXHV5SzxEdbYnYrtfYSegtlW0/4mkF9CYLGoQ\nQppX/sTBObNksDGzeOGBSDZW1UnKO/DNWJSOdsAMklyxnPxr92h5gj4aidd/\n0/r7\r\n=ondE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHzjDdE8dJqfwE6OVc69NnVtpQit/LnCop+LBVOQG51sAiAFsm+5xDk2MQweQW+Rq4dPpGlXN8jpQO6OXKpRXsxtrw=="}]},"maintainers":[{"email":"danielgindi@gmail.com","name":"danielgindi"},{"email":"dima@paloskin.me","name":"paloskin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-file-type_0.2.7_1565537410345_0.5999179836255353"},"_hasShrinkwrap":false},"0.2.8":{"name":"detect-file-type","version":"0.2.8","description":"Detect file type by signature","main":"lib/index.js","scripts":{"build":"babel -d lib src","prepublishOnly":"npm test && npm run build","test":"mocha --require @babel/register tests/test.js"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"engines":{"node":">=6.0.0"},"keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"license":"WTFPL","devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/register":"^7.4.0","chai":"^4.2.0","is-html":"^1.0.0","mocha":"^6.0.2"},"dependencies":{"iconv-lite":"^0.5.1","jschardet":"^2.1.1"},"gitHead":"7affcc823b7d8a0078ac88c6402341e5f639b893","bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","_id":"detect-file-type@0.2.8","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-7O8NJl3nx7cLT05lBkHWiY0c3iSNQlDuSM9Jb61buiiDSsBf69rQaMZ42q4HC4YWwf78M4fC710RLWtV8yFtNw==","shasum":"d493b0021539b3c82dab5e8ffe3d4e9c389bbf5c","tarball":"https://registry.npmjs.org/detect-file-type/-/detect-file-type-0.2.8.tgz","fileCount":5,"unpackedSize":47115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNn1ECRA9TVsSAnZWagAA5/EP/A/B1thA7ka+IVKk5jTr\nbJUtY6HnIiuI0k5tyjZttnKgHKxYjXMiXbcSfwkvvqc+8ngPSo7HZKqQtExx\nQIR+lypEE/WVy6DXcmEl0bfIotCn9CrjeyuqGCXXJAt9pzhJMwwO6feCTZPW\nDPp93OjpDZXZ/r7yLyxHB0lutZcDWfCgaLP600P7+jtopuhIqTjVje8J4oVE\nNCDWWjK+jZBQj2XAx5lJmrL26nUxZ3aYuO+ZXo7hhOSJydYhCAfCLgVkQtDY\niFU5QAZnOLi7M6LDBZ22wbkCn+Ra1lzjq8XIJtRtNFiGe0v1181eSj7Dt141\nQwAVDFdCZlG1EH+Yzo4/8ub7qxVa8sIxiukAeCj8v2xnL1NMl0skB1KT78Sr\nJbgZAOomcGE+OPcMNhyDLM2W/Zdt3jZVJvC7vYo+5xLQxJAxUeBVSCPcHK+Z\nIi2EXIGc15Br4PdnFndCW8P8O/PYpqLmmIiXGevH5B28k6ETIzX0EPw90D86\nU+pg7Uj0gPlpXfb/aTkEVf6Zkysxdkhaz9GR7o/c0PMre32gFTu63UzcEwGO\nUp2L2YpUHIgR0BQIGgf6p5UaYEutODIAMQnIjBbiHPSNJ8cH1XLW1WX4n2Mi\nSVOkbhO1GJesh7iVT9SjbYLixY4d+S7u8yz4tbxYvVm9gdHVlAgvLW3sr2ob\nLFnV\r\n=ukUk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoB2foRyeDaHVK6GvORGOXu+a5Cn1pfIWWdh+iaoBq9wIhAJoKzebaf7xc+bzbWEDFn90LLbcRdeY2WoLF2rom655A"}]},"maintainers":[{"email":"danielgindi@gmail.com","name":"danielgindi"},{"email":"dima@paloskin.me","name":"paloskin"}],"_npmUser":{"name":"danielgindi","email":"danielgindi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-file-type_0.2.8_1580629316259_0.3748808701338824"},"_hasShrinkwrap":false}},"readme":"# detect-file-type [![Build Status](https://travis-ci.org/dimapaloskin/detect-file-type.svg?branch=master)](https://travis-ci.org/dimapaloskin/detect-file-type)\r\n\r\n> Detect file type by signatures. [file-type inspired](https://github.com/sindresorhus/file-type)\r\n\r\n### Supported types (will be updated)\r\n  jpg, png, gif, webp, flif, cr2, tif, bmp, jxr, psd, zip, epub, xpi, tar, rar, gz, bz2, 7z, dmg, mov, mp4, m4v, m4a, 3g2, 3gp, avi, wav, qcp, mid, mkv, webm, wasm, asf, wmv, wma, mpg, mp3, opus, ogg, ogv, oga, ogm, ogx, spx, flac, ape, wv, amr, pdf, exe, swf, rtf, woff, woff2, eot, ttf, otf, ico, cur, flv, ps, xz, sqlite, nes, dex, crx, elf, cab, deb, ar, rpm, Z, lz, msi, mxf, mts, blend, bpg, jp2, jpx, jpm, mj2, aif, xml, svg, mobi, heic, ktx, dcm, mpc, ics, glb, pcap, html\r\n\r\n## Installation\r\n\r\n```\r\n  npm i --save detect-file-type\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\n  var detect = require('detect-file-type');\r\n\r\n  detect.fromFile('./image.jpg', function(err, result) {\r\n\r\n    if (err) {\r\n      return console.log(err);\r\n    }\r\n\r\n    console.log(result); // { ext: 'jpg', mime: 'image/jpeg' }\r\n  });\r\n```\r\n\r\n## API\r\n\r\n### fromFile(filePath, bufferLength?, callback)\r\nDetect file type from hard disk\r\n- `filePath` - path to file\r\n- `bufferLength` - (optional) Buffer size (in bytes) starting from the start of file. By default 500. If size of file less than 500 bytes then param the same as size of the file\r\n- `callback`\r\n\r\n### fromBuffer(buffer, callback)\r\nDetect file type from buffer\r\n- `buffer` - uint8array/Buffer\r\n- `callback`\r\n\r\n### fromFd(fd, bufferLength?, callback)\r\nDetect file type from buffer\r\n- `fd` - file descriptor\r\n- `bufferLength` - (optional) Buffer size (in bytes) starting from the start of fd. By default 500. If size of file less than 500 bytes then param the same as size of the file\r\n- `callback`\r\n\r\n### addSignature(siganture)\r\nAdd new signature for file type detecting\r\n- `signature` - a signature. See section about it below\r\n\r\n### addCustomFunction(fn)\r\nAdd custom function which receive buffer and trying to detect file type.\r\n- `fn` - function which receive buffer\r\n\r\nThis method needed for more complicated cases like html or xml for example. Truly uncomfortable to detect html via signatures because html format has a lot of \"magic numbers\" in the different places. So you can install [is-html](https://www.npmjs.com/package/is-html) package for example and use its functionality.\r\n\r\n```js\r\nconst detect = require('detect-file-type');\r\nconst isHtml = require('is-html');\r\n\r\ndetect.addCustomFunction((buffer) => {\r\n\r\n  const str = buffer.toString();\r\n  if (isHtml(str)) {\r\n    return {\r\n      ext: 'html',\r\n      mime: 'text/html'\r\n    }\r\n  }\r\n\r\n  return false;\r\n});\r\n\r\ndetect.fromFile('./some.html', (err, result) => {\r\n  \r\n  if (err) {\r\n    return console.log(err);\r\n  }\r\n  \r\n  console.log(result); // { ext: 'html', mime: 'text/html' }\r\n});\r\n```\r\n\r\n**Note**: custom function should be pure (without any async operations)\r\n\r\n## Signature and creating your own signatures\r\nDetecting of file type work via signatures.\r\nThe simplest signature in JSON format looks like:\r\n\r\n```json\r\n{\r\n  \"type\": \"jpg\",\r\n  \"ext\": \"jpg\",\r\n  \"mime\": \"image/jpeg\",\r\n  \"rules\": [\r\n    { \"type\": \"equal\", \"start\": 0, \"end\": 2, \"bytes\": \"ffd8\"  }\r\n  ]\r\n}\r\n```\r\nparams:\r\n- `type` - signature type, mostly it's the same as param 'ext'\r\n- `ext` - file extension\r\n- `iana` - optional iana registered mime type - will be added when actual used mime differs from iana, or when the old mime type we used was wrong\r\n- `mime` - mime type of file\r\n- `rules` - list of rules for detecting\r\n\r\nMore details about param `rules`:\r\n\r\n**This param have to be array of objects**\r\n\r\n- `type` - a rule type. There are available a few types: `equal`, `notEqual`, `contains`, `notContains`, `or`, `and`, `default`\r\n- `search` - a searching rule, that keeps the offset of the searched bytes in a special id.\r\n- `search_ref` - a reference to a previously performed search, `start` and `end` will be offset by it.\r\n\r\n#### More details about: equal, notEqual, contains & notContains.\r\n\r\n- `equal` - here is required field `bytes`. We get a dump of buffer from `start` (equals 0 by default) to `end` (equals buffer.length by default). After that we compare the dump with value in param `bytes`. If values are equal then this rule is correct.\r\n- `notEqual` - here is required field `bytes`. We get a dump of buffer from `start` (equals 0 by default) to `end` (equals buffer.length by default). After that we compare the dump with value in param `bytes`. If values aren't equal then this rule is correct.\r\n- `contains` - here is required field `bytes`. We get a dump of buffer from `start` (equals 0 by default) to `end` (equals buffer.length by default). After that we try to find the sequence from `bytes` in this dump. If the dump contains `bytes` then rules is correct.\r\n- `notContains` - here is required field `bytes`. We get a dump of buffer from `start` (equals 0 by default) to `end` (equals buffer.length by default).  After that we try to find the sequence from `bytes` in this dump. If the dump contains `bytes` then rules is incorrect.\r\n\r\n#### More details about the rule types `or` and `and`\r\n\r\nActually, these types are necessary when you work with complicated signatures. For example, when file contains few sequences of bytes in different parts of file. Here is required field 'rules', where you should define set of another rules. See example:\r\n\r\n```json\r\n{\r\n  \"type\": \"tif\",\r\n  \"ext\": \"tif\",\r\n  \"mime\": \"image/tiff\",\r\n  \"rules\": [\r\n    { \"type\": \"and\", \"rules\":\r\n      [\r\n        { \"type\": \"notEqual\", \"start\": 8, \"end\": 10, \"bytes\": \"4352\" },\r\n        { \"type\": \"or\", \"rules\":\r\n            [\r\n             { \"type\": \"equal\", \"start\": 0, \"end\": 4, \"bytes\": \"49492a00\" },\r\n             { \"type\": \"equal\", \"start\": 0, \"end\": 4,  \"bytes\": \"4d4d002a\" }\r\n           ]\r\n          }\r\n      ]\r\n    }\r\n   ]\r\n }\r\n```\r\n\r\nExplanation: If dump starts from 8th byte and ends to 10th byte isn't equal \"4352\", **and** dump starts from 0 and ends to 4th byte is equal \"49492a00\" **or** is equal \"4d4d002a\" then data looks like file with 'tif' format.\r\n\r\n- `or` - means that any rules from `rules` should be correct. If at least 1 rule is correct then list are correct too.\r\n- `and` - means that each rule from `rules` should be correct. If all rules are correct then list is correct. When at least 1 rule fail then all list is incorrect.\r\n\r\nThe rules `or` and `and` can be nested without restrictions.\r\n\r\nThe `default` type is special and is used as a fallback when a set of `or` rules did not match, inside a larger tree with multiple mime detections.\r\n\r\n#### More details about the `search` object\r\n\r\n- `id` - id to assign to the result (reference later with `search_ref`)\r\n- `start`/`end` - range to search in\r\n- `bytes` - bytes to search for\r\n\r\n[Documentation in Russian](README_RU.md)\r\n\r\n## License\r\n\r\nWTFPL © [Dmitry Pavlovsky](http://paloskin.me)\r\n","maintainers":[{"email":"danielgindi@gmail.com","name":"danielgindi"},{"email":"dima@paloskin.me","name":"paloskin"}],"time":{"modified":"2022-06-15T01:55:23.157Z","created":"2016-07-28T12:07:25.546Z","0.0.2":"2016-07-28T12:07:25.546Z","0.0.3":"2016-07-28T12:25:15.675Z","0.0.4":"2016-07-28T12:39:22.688Z","0.0.5":"2016-07-29T12:11:31.098Z","0.0.6":"2016-07-29T12:23:43.933Z","0.0.7":"2016-07-29T13:33:46.291Z","0.0.8":"2016-07-29T13:40:24.601Z","0.0.9":"2016-07-29T14:26:47.926Z","0.0.10":"2016-07-29T14:42:18.754Z","0.0.11":"2016-07-29T14:54:02.120Z","0.0.12":"2016-07-29T15:38:57.288Z","0.0.13":"2016-11-16T07:50:41.725Z","0.0.14":"2016-11-16T07:53:28.050Z","0.0.15":"2016-11-16T08:01:32.921Z","0.1.0":"2016-11-16T08:44:40.607Z","0.1.1":"2017-05-03T16:14:42.222Z","0.1.2":"2017-05-03T16:16:05.870Z","0.1.3":"2017-06-21T07:47:19.608Z","0.1.4":"2018-07-09T08:14:10.769Z","0.2.0":"2018-10-15T13:30:02.164Z","0.2.1":"2019-03-24T07:08:56.453Z","0.2.2":"2019-03-24T10:29:00.971Z","0.2.3":"2019-03-25T11:11:28.979Z","0.2.4":"2019-08-11T13:27:02.765Z","0.2.5":"2019-08-11T13:35:35.828Z","0.2.6":"2019-08-11T15:22:42.903Z","0.2.7":"2019-08-11T15:30:10.487Z","0.2.8":"2020-02-02T07:41:56.432Z"},"homepage":"https://github.com/dimapaloskin/detect-file-type#readme","keywords":["file","type","mime","detect","check","uint8array","check","buffer"],"repository":{"type":"git","url":"git+https://github.com/dimapaloskin/detect-file-type.git"},"author":{"name":"Dmitry Pavlovsky","email":"dima@paloskin.me","url":"http://paloskin.me"},"bugs":{"url":"https://github.com/dimapaloskin/detect-file-type/issues"},"license":"WTFPL","readmeFilename":"README.md","users":{"paloskin":true,"chirag8642":true}}