{"_id":"is-eot","_rev":"4-247793712519c12c6d880befe1f36865","name":"is-eot","description":"Check if a Buffer/Uint8Array is EOT","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"is-eot","version":"1.0.0","description":"Check if a Buffer/Uint8Array is EOT","license":"MIT","repository":{"type":"git","url":"https://github.com/junmer/is-eot"},"author":{"name":"junmer"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["font","font-face","sfnt","eot","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"9c778c117a6ee08665cdc777b56d23fd482c718f","bugs":{"url":"https://github.com/junmer/is-eot/issues"},"homepage":"https://github.com/junmer/is-eot","_id":"is-eot@1.0.0","_shasum":"e849c40f0e18a6853c0d6b6bac24ef1f2c739e6b","_from":".","_npmVersion":"2.0.0-alpha-5","_npmUser":{"name":"junmer","email":"junmer@foxmail.com"},"maintainers":[{"name":"junmer","email":"junmer@foxmail.com"}],"dist":{"shasum":"e849c40f0e18a6853c0d6b6bac24ef1f2c739e6b","tarball":"https://registry.npmjs.org/is-eot/-/is-eot-1.0.0.tgz","integrity":"sha512-hPQF4rLYEe9VGVGr6aGrc0Yf5s8MOaEsY8SUi/IySicowWu10/Cr60+JVsVEl7v2MD+TbhwBWjudCK6OycPr7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/au/MFwkXHYTE/0z1akvm6BbBVBVeXH6UXIca0dqNgQIhAOBdUyuCOkHXEz1kKIewSgmabmSJX9isE3myC9NAQYTd"}]}}},"readme":"# is-eot [![Build Status](https://travis-ci.org/junmer/is-eot.svg?branch=master)](https://travis-ci.org/junmer/is-eot)\n\n> Check if a Buffer/Uint8Array is a [EOT](http://www.w3.org/Submission/EOT/#FileFormat) \n\n## Install\n\n```sh\n$ npm install --save is-eot\n```\n\n\n## Usage\n\n##### Node.js\n\n```js\nvar readChunk = require('read-chunk'); // npm install read-chunk\nvar isEot = require('is-eot');\nvar buffer = readChunk.sync('font.eot', 0, 36);\n\nisEot(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nvar xhr = new XMLHttpRequest();\nxhr.open('GET', 'font.eot');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = function () {\n\tisEot(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n\n## API\n\n### isEot(buffer)\n\nAccepts a Buffer (Node.js) or Uint8Array.\n\n## Test\n\n```sh\n$ npm test\n```\n\n> test file from [Font-Awesome](https://github.com/FortAwesome/Font-Awesome)\n\n## License\n\nMIT © [junmer](https://github.com/junmer/)\n","maintainers":[{"name":"junmer","email":"junmer@foxmail.com"}],"time":{"modified":"2022-06-19T02:40:33.028Z","created":"2015-02-05T11:33:01.270Z","1.0.0":"2015-02-05T11:33:01.270Z"},"homepage":"https://github.com/junmer/is-eot","keywords":["font","font-face","sfnt","eot","type","detect","check","is","binary","buffer","uint8array"],"repository":{"type":"git","url":"https://github.com/junmer/is-eot"},"author":{"name":"junmer"},"bugs":{"url":"https://github.com/junmer/is-eot/issues"},"license":"MIT","readmeFilename":"readme.md"}