{"_id":"is-tif","_rev":"12-c0700f590194099d3b5ac99a8aaa2dbf","name":"is-tif","description":"Check if a Buffer/Uint8Array is a TIFF image","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"is-tif","version":"0.1.0","description":"Check if a Buffer/Uint8Array is a TIFF image","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-tif"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["tif","tiff","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-tif/issues"},"homepage":"https://github.com/sindresorhus/is-tif","_id":"is-tif@0.1.0","dist":{"shasum":"ab08107274a5c820706747194b292d47ec2445e9","tarball":"https://registry.npmjs.org/is-tif/-/is-tif-0.1.0.tgz","integrity":"sha512-IzCuWOzI9GPQ83NP/G1PIbwlZpw1cLvIPYUShy+HwRiq+8zKPWEY2ruOBfQcVH6TtyAVl8wqiR0DXorAkRh0TQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgCM4F06eYRxnEhMfLFFCZsV9ph/1m2ZVc5mFq5gMx/wIgWzYEKp0Wik2oeD5hAbxngqe8RWx5M4qGhVUlamw399E="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.1.1":{"name":"is-tif","version":"0.1.1","description":"Check if a Buffer/Uint8Array is a TIFF image","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-tif"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["tif","tiff","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-tif/issues"},"homepage":"https://github.com/sindresorhus/is-tif","_id":"is-tif@0.1.1","dist":{"shasum":"baa5abade91f5710c9ed8bbffae469211ecce6dc","tarball":"https://registry.npmjs.org/is-tif/-/is-tif-0.1.1.tgz","integrity":"sha512-zT8uif3A35M4UCaOMY/glw/lNVJEGsfuWfnbgX8AjqNUTDn3Z7pKlpZNTMTqSIJWPDR6wMBdJhIXuSVqiX/wSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFr5autgQAt07T4joTf2Vl6qcmyXuMTHrDJhVJByrB0uAiEAuw4VQy+GTJoRTNr/epl6QiHTh16G2v/8bd0aOn7dHcI="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.0":{"name":"is-tif","version":"1.0.0","description":"Check if a Buffer/Uint8Array is a TIFF image","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-tif"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tif","tiff","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"512d51da93349b2e0ba44b8409eb6fbadea036b2","bugs":{"url":"https://github.com/sindresorhus/is-tif/issues"},"homepage":"https://github.com/sindresorhus/is-tif","_id":"is-tif@1.0.0","_shasum":"39e82b507d147e8578ccdc5f3bfb708fc14600fe","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"39e82b507d147e8578ccdc5f3bfb708fc14600fe","tarball":"https://registry.npmjs.org/is-tif/-/is-tif-1.0.0.tgz","integrity":"sha512-sDcA217w11G7gzTtc9w6W99oLk+k8QT6nea5ncxnEJHiPMs6msJyuJU1524OfP5UeK7nTaPjQy/dfV50RQ5XsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFngrTdkXrywEOX9344EZqYPcHiTlJ7AfE0ffuTYIQvQIhAJfMbs4kjbngYgZwA+hESoLS9Vj4thA/xEmhI5dms2Pq"}]},"directories":{}},"1.0.1":{"name":"is-tif","version":"1.0.1","description":"Check if a Buffer/Uint8Array is a TIFF image","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-tif.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tif","tiff","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"c18555f3ace51f9895f0a9110a029b304a1ebaa6","bugs":{"url":"https://github.com/sindresorhus/is-tif/issues"},"homepage":"https://github.com/sindresorhus/is-tif#readme","_id":"is-tif@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-QmOJLD2f4jjQZSDS2mJ85AornoVjCwrv/aBjm4RWatLF2nSsHxTkuYkHpKKV/BvQVg4U2sASc56G7rXwUIWRTw==","shasum":"a0b887b90518a5ba0c7cd4b0aed2b2294702ed0d","tarball":"https://registry.npmjs.org/is-tif/-/is-tif-1.0.1.tgz","fileCount":4,"unpackedSize":3039,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAJY2N1xzyYe1cKoKiEoLQIyl08cfl1CybXQ57fRzgoDAiAbQYKhqE7EBGmqmNDOs6xC8TaHVNxHI5BSTP7N3cGyiw=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-tif_1.0.1_1521735770312_0.9888041242384713"},"_hasShrinkwrap":false},"2.0.0":{"name":"is-tif","version":"2.0.0","description":"Check if a Buffer/Uint8Array is a TIFF image","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-tif.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava"},"keywords":["tif","tiff","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"ava":"^3.15.0","read-chunk":"^4.0.0","xo":"^0.44.0"},"gitHead":"c42732994efe35e6185191ba263858c370453b02","bugs":{"url":"https://github.com/sindresorhus/is-tif/issues"},"homepage":"https://github.com/sindresorhus/is-tif#readme","_id":"is-tif@2.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"integrity":"sha512-YEQPDqGNgLyhmC0lwX9pZidlMUb2tgayqIitnySWqkr8CcfNOhWACZETtlBDo+4VCxeoULUof5XRBaXwX3FrUQ==","shasum":"a1c29c6d4926c955d4d4cbd07e7f16b5640271fe","tarball":"https://registry.npmjs.org/is-tif/-/is-tif-2.0.0.tgz","fileCount":4,"unpackedSize":2916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEYb5CRA9TVsSAnZWagAALmcP/1hK00+hIcF2NZVPhqEn\nR79bSZehUdUGzJNwRYoEAui6u+K0ZgfTt58wZstT+JHloYQVwuo6magu2ZCV\n0KXZRpc8bPRKLjEOF1kuMsNU6DGoa4yOQ9zU615iGVINOjsVRIiwnYs42qqA\n4px5oTN5yCpIv3oVz2rI8cAwZmT49DI4rLCxh+90TGErXtCBPj+cvWkTvoLR\ntzM9lZMErw9XvGz6a8LsQ1YdaNe7IZaUUi0MeLBLsuBeuE5DT5ducaWuLpOU\ni+nEDAvvWYrj0sVabk/epmWJWYjPiiT+scrgeqwAOsmdIik/vtc4/JeEKpCa\n1ocEN9zHba1ng4RQC5aDJ/idpbbLoXNW5iXso7K+0vrGnQUcgau5Su+tKorg\nJwIMnJkwXxE3MyYoSnfo/6OtBQWiSxXeXJDOaZavNuD5lyHQvr25IqrHiPk7\nk4X69gD8S+mm1/+hMOInWCfHT3b8+rBvAu4ZeIHSXJTJN0MeT0ABsnk9Qnbs\nk9RI+kIG2zLKzecHpksxZd00tKcdDPOmGBM+7qNJq3ljFt3eBMarwjjeWnK3\ndrQzeX/f2CD9ejt9qLz7b+PWqxCdxD46tm32aNdK9IaTOu+AoFVmlaNFkPAy\nGn8qxbZ/PCm8WxlmfRR8oP5Ur0hKg86fYSIVES9sUS8U7v54c1jdkaPogaGs\n7dup\r\n=wfUz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaG6pPzVsgolM5rBJWgDXRFzTe1wVJCdySVcUjJ1cVGAiEA+92s5YIqUNT3lA1r5KY6idztxCpo7whlhMF3G4/uROU="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-tif_2.0.0_1628538616950_0.42572356482056817"},"_hasShrinkwrap":false}},"readme":"# is-tif\n\n> Check if a Buffer/Uint8Array is a [TIFF](https://en.wikipedia.org/wiki/TIFF) image\n\n## Install\n\n```\n$ npm install is-tif\n```\n\n## Usage\n\n##### Node.js\n\n```js\nimport {readChunkSync} from 'read-chunk';\nimport isTif from 'is-tif';\n\nconst buffer = readChunkSync('unicorn.tif', {length: 4});\n\nisTif(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nconst xhr = new XMLHttpRequest();\nxhr.open('GET', 'unicorn.tif');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = () => {\n\tisTif(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n## API\n\n### isTif(buffer)\n\nAccepts a `Buffer` (Node.js) or `Uint8Array`.\n\nIt only needs the first 4 bytes.\n\n## Related\n\n- [file-type](https://github.com/sindresorhus/file-type) - Detect the file type of a Buffer/Uint8Array\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-06-19T02:51:24.373Z","created":"2014-04-21T17:34:19.012Z","0.1.0":"2014-04-21T17:34:19.012Z","0.1.1":"2014-04-29T19:14:29.280Z","1.0.0":"2014-08-14T14:33:52.040Z","1.0.1":"2018-03-22T16:22:50.359Z","2.0.0":"2021-08-09T19:50:17.129Z"},"homepage":"https://github.com/sindresorhus/is-tif#readme","keywords":["tif","tiff","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-tif.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/is-tif/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"rocket0191":true}}