{"_id":"is-epub","_rev":"14-33c7be14b3338085ee2fc8294a6ad18d","name":"is-epub","description":"Check if a Buffer/Uint8Array is EPUB","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"is-epub","version":"0.1.0","description":"Check if a Buffer/Uint8Array is EPUB","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-epub"},"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":["epub","ebook","book","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-epub/issues"},"homepage":"https://github.com/sindresorhus/is-epub","_id":"is-epub@0.1.0","dist":{"shasum":"74b184ab85f455d947e66528c1836f17e5f7fc2c","tarball":"https://registry.npmjs.org/is-epub/-/is-epub-0.1.0.tgz","integrity":"sha512-4fw+kxGepNZSRysIqvT1iSvaCOcnTy81WRCqNjb084rrroh71E10Z6XB1SHn4vVPGE+k4ZLzD0BbpLD0e7wtRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELZYT+V9mn421BXVT0ps+TkisW18TJ0EqOyE0896NmmAiEA9Z8mcbhBkkEfoIHDo+a38oPKX43WDywM68u6VWJ2dYA="}]},"_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-epub","version":"0.1.1","description":"Check if a Buffer/Uint8Array is EPUB","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-epub"},"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":["epub","ebook","book","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-epub/issues"},"homepage":"https://github.com/sindresorhus/is-epub","_id":"is-epub@0.1.1","dist":{"shasum":"4bd6275cb48696cfc98eb3b25eec8fdf09f9ece0","tarball":"https://registry.npmjs.org/is-epub/-/is-epub-0.1.1.tgz","integrity":"sha512-/+LEwHHMKyAXKC4bbhHoDmmtmTilnErzaGzOYssVdn9duEvLb5tSBYcqOzOAAMr0zqMEKBJkHgy6f/OBg6JjUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCizsM5F5qedlAniO+wNzg8a/86sOyyQedOkFc4xIaZmQIhANzv4HgZvDWNWw+TBizCvhvOnJqNl1KC3DYFw9HhEM8V"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.1.2":{"name":"is-epub","version":"0.1.2","description":"Check if a Buffer/Uint8Array is EPUB","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-epub"},"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":["epub","ebook","book","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-epub/issues"},"homepage":"https://github.com/sindresorhus/is-epub","_id":"is-epub@0.1.2","dist":{"shasum":"abbb886ed11d5f5c03bc012f55afed828f727965","tarball":"https://registry.npmjs.org/is-epub/-/is-epub-0.1.2.tgz","integrity":"sha512-DzZmi3wxELpsW2IY79jn2zHPDnqz7jDF/U5FE2bg/ObX8m4uyEkDihP33S2xJDxEl/XDYH9QC3uDq43y3w4P1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfiVfstMcnuQwE52nJZ0kE+B6gK9OXxl7vcBoEhb0piwIgYrak0avozP7bAQ29MxAt0bmaA8+y5ELvB6XpVys+T0U="}]},"_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-epub","version":"1.0.0","description":"Check if a Buffer/Uint8Array is EPUB","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-epub"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["epub","ebook","book","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"cf7fdd2921023eefa465f80eca3972bb22ef7be9","bugs":{"url":"https://github.com/sindresorhus/is-epub/issues"},"homepage":"https://github.com/sindresorhus/is-epub","_id":"is-epub@1.0.0","_shasum":"c33159588fe35297008e8fbaa1e8be6a46a86a51","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"c33159588fe35297008e8fbaa1e8be6a46a86a51","tarball":"https://registry.npmjs.org/is-epub/-/is-epub-1.0.0.tgz","integrity":"sha512-hFMXoORoJW+biSsj6V5rvl64AeZWXn9+bDvGDSqGNl6tpJiNmz670TG32fyL9GPAyD3WgZfZNEhfoaSEOzkjwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOEoFD1Ovs4bOTzEwTtPQ+Ut+fxmF7v5iXxWbS3mHZSgIhAJ1FWktFwZS2TGqcbn3riGdaWgJTiBE8ZDOke9ObbYKu"}]},"directories":{}},"1.0.1":{"name":"is-epub","version":"1.0.1","description":"Check if a Buffer/Uint8Array is EPUB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-epub.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":["epub","ebook","book","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"e7b566655147ed8564197a9b854deeace0b1eaaf","bugs":{"url":"https://github.com/sindresorhus/is-epub/issues"},"homepage":"https://github.com/sindresorhus/is-epub#readme","_id":"is-epub@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-FBWuwBR74DX2Oq4TtW4IoDbaBI4dShMqrsmxanH0Xf9+MvW8GJaRoWKyDQ5NrQqqjddM7YPe/dE3vlPI8F1eGw==","shasum":"eaad390b9a354242372d916ad2eaaa8aaaa6cb2c","tarball":"https://registry.npmjs.org/is-epub/-/is-epub-1.0.1.tgz","fileCount":4,"unpackedSize":2923,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT4rf2TMLcaQBbTeBXOx3VSuaPWQ6Ugyvnwc+v7/zqYQIhAP2+9BfOYsaRG/vyG7zTopZ0y/crgWoz5TXD5y9CD/q4"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-epub_1.0.1_1521736765339_0.632869077374659"},"_hasShrinkwrap":false},"2.0.0":{"name":"is-epub","version":"2.0.0","description":"Check if a Buffer/Uint8Array is EPUB","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-epub.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"ava && xo"},"keywords":["epub","ebook","book","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"ava":"^3.15.0","read-chunk":"^2.1.0","xo":"^0.39.1"},"gitHead":"884115c3fed067f3d45128e807216a1655790d5e","bugs":{"url":"https://github.com/sindresorhus/is-epub/issues"},"homepage":"https://github.com/sindresorhus/is-epub#readme","_id":"is-epub@2.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-jTlgtV6MwRgoR1H7vpdAAUD4N3YBBP9tRXDMX5p1W+skhgyCMIcQ/jELy1ENOWOBQD5uYeAGICamJh7LvCV+9w==","shasum":"aa64fa65ab2bdc6bad39e843101406e170fac4e0","tarball":"https://registry.npmjs.org/is-epub/-/is-epub-2.0.0.tgz","fileCount":4,"unpackedSize":2808,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgj/WXCRA9TVsSAnZWagAADqUP/29IpUHjRvmvPI4q9lAN\nDjK8pIocSmjMUJOxaLtLK5Uf3hcsXrnkbwZc41QlKw6vRqbJxiO3r6P5Tbc/\nFJB8YEb5Xqr7MBILNDJ7AfuzlCRf0gCWtiZoDJFYOLaNZKyB2EFenmWX7YEL\nb0CxG73kQxUT8O8P/XjpvkhX95z5M7UVbdbjKmQ5YTUEwx7yPSdzGxes6kVe\nqpE3r3BypCJHZaWV4bb4U2xpCJMDK5CX+Q7o/ozol1SCW1Ls8ITD51bzIUQf\nezr/u4AV7LhUjMY+BhNpQNnyIviX0Zn1EBpt3jqQgoHpProA1AdCCQowFPii\nlIVNVBnASUykbLmhU0ues643mzpib5Bfc0Jdg3FhxUgRHqhbd+AiZZPhjckC\n9DiFUADRTE28MNsWp0WhqVKC8J7lHba/g9SX4A0dt/KTKFe0ZrAow2WfQrlx\nPhyaMSARd8kpKSWPBsVEkL+kwRRw/MiITQwJUJI/7L6jDP05VjHpO5WnfmAx\nRPom+LOC5mZQzlFxdPmbHt7OgIJK35ZMlYN6yuAMC8ml/UXa1duVCoQON58q\nNlvZL/eM8tDzEB/XIjs93net4ldTHRp9uZ1FTFYAy7gXTk3mnPrUarXzvrYy\nLKWlc6RAaQ6CpTat0ce24PPDK917eavb2E4diKqtZoLMUYTQTk93JMsF4o/7\nkY5I\r\n=pm1s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqTBcZT1rWrsqbFeJD91t8e9ZGJNuXZAcq1Z8175IRIgIgSvgwa8R6nSMH7mKHnRnJRF+WnGdb2RYaSUmhlvgQPTM="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-epub_2.0.0_1620047254759_0.2753300021124694"},"_hasShrinkwrap":false}},"readme":"# is-epub\n\n> Check if a Buffer/Uint8Array is [EPUB](https://en.wikipedia.org/wiki/EPUB)\n\n## Install\n\n```\n$ npm install is-epub\n```\n\n## Usage\n\n##### Node.js\n\n```js\nimport readChunk from 'read-chunk';\nimport isEpub from 'is-epub';\n\nconst buffer = readChunk.sync('unicorn.epub', 0, 58);\n\nisEpub(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nimport isEpub from 'is-epub';\n\nconst xhr = new XMLHttpRequest();\nxhr.open('GET', 'unicorn.epub');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = () => {\n\tisEpub(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n## API\n\n### isEpub(buffer)\n\nAccepts a Buffer (Node.js) or Uint8Array.\n\nIt only needs the first 58 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:40:35.045Z","created":"2014-04-26T00:18:30.435Z","0.1.0":"2014-04-26T00:18:30.435Z","0.1.1":"2014-04-26T00:24:49.204Z","0.1.2":"2014-04-29T19:09:16.949Z","1.0.0":"2014-08-14T17:00:33.516Z","1.0.1":"2018-03-22T16:39:25.591Z","2.0.0":"2021-05-03T13:07:34.900Z"},"homepage":"https://github.com/sindresorhus/is-epub#readme","keywords":["epub","ebook","book","type","detect","check","is","binary","buffer","uint8array"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-epub.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/is-epub/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"adilibre":true}}