{"_id":"is-jxr","_rev":"12-9fb1436840d230464648aa4edaed4f36","name":"is-jxr","description":"Check if a Buffer/Uint8Array is a JPEG XR image","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"is-jxr","version":"0.1.0","description":"Check if a Buffer/Uint8Array is a JPEG XR image","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-jxr"},"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":["jxr","jpeg xr","jpg","jpeg","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array","cli","bin"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-jxr/issues"},"homepage":"https://github.com/sindresorhus/is-jxr","_id":"is-jxr@0.1.0","dist":{"shasum":"ac5db88597518baf5dffc2c29350194798ec55a2","tarball":"https://registry.npmjs.org/is-jxr/-/is-jxr-0.1.0.tgz","integrity":"sha512-NEg/3MDleP2pAKySKHoQQ/d0BJBGsXKcaypsKTWYD5XqtUfoDRIpUtFrv6RWWaPNEWhgYpX5OYr907f24ZDo5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXMqZmV8X7EzRLFxHRP4LyTKz9+JxgIFgnZ+ZUKCNAuQIhAP5p7hvexitTrCDujEgokmQvB/wXCujyGUOQbEkwG9e/"}]},"_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-jxr","version":"0.1.1","description":"Check if a Buffer/Uint8Array is a JPEG XR image","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-jxr"},"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":["jxr","jpeg xr","jpg","jpeg","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array","cli","bin"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-jxr/issues"},"homepage":"https://github.com/sindresorhus/is-jxr","_id":"is-jxr@0.1.1","dist":{"shasum":"272fa52049c7c20cd706f08f2000f2c3e1957fea","tarball":"https://registry.npmjs.org/is-jxr/-/is-jxr-0.1.1.tgz","integrity":"sha512-OpkG9Zso6/96xsRJZhE5Nj9/p5rpGwnI5+S5qV8VUUzwbOcEZoja7gl8Vk5XMaIrGYv/g24jhm/fsmbUhV/Rrg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD19UXAWvb6ZUcTyk/HYdkwh9TsRKC3Fk/p11qbf/lbFwIgFRQENlgKsOEdARr+k8JZREZQPzfZe3Z6ecLNxzzDv7A="}]},"_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-jxr","version":"1.0.0","description":"Check if a Buffer/Uint8Array is a JPEG XR image","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-jxr"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["jxr","jpeg xr","jpg","jpeg","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array","cli","bin"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"1e62733a89f1ca631138ed463fa0b3916a89564e","bugs":{"url":"https://github.com/sindresorhus/is-jxr/issues"},"homepage":"https://github.com/sindresorhus/is-jxr","_id":"is-jxr@1.0.0","_shasum":"d2025b519413d0e65dfc6bb762afeaa3def6382b","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"d2025b519413d0e65dfc6bb762afeaa3def6382b","tarball":"https://registry.npmjs.org/is-jxr/-/is-jxr-1.0.0.tgz","integrity":"sha512-Jnebj99lCb8qG4DxmVf6o8DOKDTEvH/yC86ntPjQtkoj44HmNU3sYUPSS5v0jK+UTAoOyMRqRupHRV8i7gMv9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBY40J+5tXHQfbCWr1Mx76SQT+1ivlGy7PdQGaXlYr0wAiA7/yGlZhoehm2oaJx+dDuDMi8EeNy7ApKZbB/Z7PlVEg=="}]},"directories":{}},"1.0.1":{"name":"is-jxr","version":"1.0.1","description":"Check if a Buffer/Uint8Array is a JPEG XR image","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-jxr.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":["jxr","jpeg xr","jpg","jpeg","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array","cli","bin"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"39aef392186a05116c34e170652fd4f985aa7fb5","bugs":{"url":"https://github.com/sindresorhus/is-jxr/issues"},"homepage":"https://github.com/sindresorhus/is-jxr#readme","_id":"is-jxr@1.0.1","_shasum":"cc3412cfe0cb784590c5cbfced0d13c0347ff029","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cc3412cfe0cb784590c5cbfced0d13c0347ff029","tarball":"https://registry.npmjs.org/is-jxr/-/is-jxr-1.0.1.tgz","fileCount":4,"unpackedSize":2964,"integrity":"sha512-hYy5jOxaAi+nhQPkqBCrl/0oP7MhmqPmYOHbn3cJ7YQmvib3EN/bMaamCMU8ZgwUR7eUeyAS2DyGbeFRJc9W3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbrUVFaOS00kip0EFWD3r93SuC0mvpVXwPsxg/Tq/7lwIgXCPBkbo2YqpjJoNFzQeBqyS2oAJyHFBooEioMEVc/tA="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-jxr_1.0.1_1521734038785_0.23232258793070448"},"_hasShrinkwrap":false},"2.0.0":{"name":"is-jxr","version":"2.0.0","description":"Check if a Buffer/Uint8Array is a JPEG XR image","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-jxr.git"},"funding":"https://github.com/sponsors/sindresorhus","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":["jxr","jpeg xr","jpg","jpeg","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array","cli","bin"],"devDependencies":{"ava":"^3.15.0","read-chunk":"^4.0.2","xo":"^0.44.0"},"gitHead":"c8efc51c35353d69f6935b13de9fc6afec1e06e0","bugs":{"url":"https://github.com/sindresorhus/is-jxr/issues"},"homepage":"https://github.com/sindresorhus/is-jxr#readme","_id":"is-jxr@2.0.0","_nodeVersion":"16.9.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-qi9Ln2j9RVQ2N6HgFjQ5oJW7/3DCWSl4LaUZ4DkIBt/i7mzf77xOpKkJDtV/Na9vC/j2FxfZcNotgX7YqVilbQ==","shasum":"fc7365186cbb126977469febe1d06a3a377cbb22","tarball":"https://registry.npmjs.org/is-jxr/-/is-jxr-2.0.0.tgz","fileCount":4,"unpackedSize":2885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2wFBCRA9TVsSAnZWagAAiocQAJjwOujc5AFGpPT+rlEF\nxmK9hl9vPYx7s2ewUeTAu19G9orysAVxfS8KmABcFD5Hi0QCHNWvtJBo6yp/\nj95xt1I4fItzjYS0cXLs5hYIKKK6xYre5YPmS3U2qzqfCjOu2nnjyR1Iw6dm\nr4r3vw3ro+KUluj8WKMFuAG19hs35R7q0AD25hXvtpTiB5BgZDkIaivBLfO/\n4LBQ+2kMx0oaZI+6lUEPAwLEZOCZNYPW4qXMsO1VWyIV1USWEw1XOk+6Y1ri\nWmQezKTy5hvsI6WuwH6aBPG1uoaJU9X/weY20eLZzA9PoC8rB+eO5wEYi0h4\nJO5bEPP74lJ+dQH8wLaz22G21K+EYEdpiuP97qPbpmz3DjAjTfUnCIa70l3Y\nPwqBcALAJsKW6jEn5BWaVHh7E6QDCuAXaXkvsDfoaypoHQPgUAhREDtohWlB\nfkZ/nV4B8grMpgjj1BAiatWcn8C7s59KXC0q0rVdAeqj5ep+dg0OR1FHmbmu\ngP4X7aaFXSBrZf9jmDvuwZszYvooutB/VOv4TPDL60k8ufGkVoOzQ8TbXE78\n5gBTXZShdtktKfWoAGE4ajInR01mQ2+c3OHyo/epeliuKHK6XQmgeUrqWmZK\nJzaWnHzObonmQ9S9VI0W1htEXmluNLHe29/motK22u6BE4Y+BhnrrVsB9iaq\nHgem\r\n=CybW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+uzigBq3iMpcXCR7Ta9OkRmPP/m+sCXLzALMklF6IbAiAxYJWEQbUeY9lVNsn5vFD3CIjcz5zIFY/JXEun4G3BAg=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-jxr_2.0.0_1631990801230_0.608836149874237"},"_hasShrinkwrap":false}},"readme":"# is-jxr\n\n> Check if a Buffer/Uint8Array is a [JPEG XR](https://en.wikipedia.org/wiki/JPEG_XR) image\n\n## Install\n\n```sh\nnpm install is-jxr\n```\n\n## Usage\n\n##### Node.js\n\n```js\nimport {readChunk} from 'read-chunk';\nimport isJxr from 'is-jxr';\n\nconst buffer = await readChunk('unicorn.jxr', {length: 3});\n\nisJxr(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nconst xhr = new XMLHttpRequest();\nxhr.open('GET', 'unicorn.jxr');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = () => {\n\tisJxr(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n## API\n\n### isJxr(buffer)\n\nAccepts a `Buffer` (Node.js) or `Uint8Array`.\n\nIt only needs the first 3 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:44:28.106Z","created":"2014-04-21T17:42:03.110Z","0.1.0":"2014-04-21T17:42:03.110Z","0.1.1":"2014-04-29T19:12:03.536Z","1.0.0":"2014-08-14T14:38:00.981Z","1.0.1":"2018-03-22T15:53:58.843Z","2.0.0":"2021-09-18T18:46:41.379Z"},"homepage":"https://github.com/sindresorhus/is-jxr#readme","keywords":["jxr","jpeg xr","jpg","jpeg","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array","cli","bin"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-jxr.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/is-jxr/issues"},"license":"MIT","readmeFilename":"readme.md"}