is-eot:检查 BufferUint8Array 是否为 EOT

时间:2021-06-26 18:28:53
【文件属性】:
文件名称:is-eot:检查 BufferUint8Array 是否为 EOT
文件大小:68KB
文件格式:ZIP
更新时间:2021-06-26 18:28:53
JavaScript iseot 检查 Buffer/Uint8Array 是否是 安装 $ npm install --save is-eot 用法 节点.js var readChunk = require ( 'read-chunk' ) ; // npm install read-chunk var isEot = require ( 'is-eot' ) ; var buffer = readChunk . sync ( 'font.eot' , 0 , 36 ) ; isEot ( buffer ) ; //=> true 浏览器 var xhr = new XMLHttpRequest ( ) ; xhr . open ( 'GET' , 'font.eot' ) ; xhr . responseType = 'arraybuffer' ; xhr . onload = function
【文件预览】:
is-eot-master
----.jshintrc(190B)
----.gitattributes(12B)
----fontawesome-webfont.eot(59KB)
----test.js(393B)
----fonteditor.eot(8KB)
----license(1KB)
----.travis.yml(38B)
----.editorconfig(223B)
----.gitignore(13B)
----index.js(346B)
----readme.md(919B)
----package.json(550B)

网友评论