is-jxr:检查BufferUint8Array是否为JPEG XR图像

时间:2021-05-26 08:11:42
【文件属性】:
文件名称:is-jxr:检查BufferUint8Array是否为JPEG XR图像
文件大小:112KB
文件格式:ZIP
更新时间:2021-05-26 08:11:42
JavaScript is-jxr 检查Buffer / Uint8Array是否为图像 安装 $ npm install is-jxr 用法 Node.js const readChunk = require ( 'read-chunk' ) ; const isJxr = require ( 'is-jxr' ) ; const buffer = readChunk . sync ( 'unicorn.jxr' , 0 , 3 ) ; isJxr ( buffer ) ; //=> true 浏览器 const xhr = new XMLHttpRequest ( ) ; xhr . open ( 'GET' , 'unicorn.jxr' ) ; xhr . responseType = 'arraybuffer' ; xhr . onload = ( ) => { isJxr ( new U
【文件预览】:
is-jxr-main
----index.js(174B)
----test.js(252B)
----package.json(678B)
----readme.md(832B)
----.github()
--------workflows()
----license(1KB)
----fixture.jxr(70KB)
----fixture.png(53KB)
----.gitignore(23B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(29B)

网友评论