没有合适的资源?快使用搜索试试~ 我知道了~
is-psd:检查BufferUint8Array是否为PSD图像
共12个文件
js:2个
psd:1个
png:1个
需积分: 9 0 下载量 12 浏览量
2021-05-26
08:17:40
上传
评论
收藏 133KB ZIP 举报
温馨提示
is-psd 检查Buffer / Uint8Array是否为图像 安装 $ npm install is-psd 用法 Node.js const readChunk = require ( 'read-chunk' ) ; // npm install read-chunk const isPsd = require ( 'is-psd' ) ; const buffer = readChunk . sync ( 'unicorn.psd' , 0 , 4 ) ; isPsd ( buffer ) ; //=> true 浏览器 const xhr = new XMLHttpRequest ( ) ; xhr . open ( 'GET' , 'unicorn.psd' ) ; xhr . responseType = 'arraybuffer' ; xhr . onload
资源推荐
资源详情
资源评论
收起资源包目录
is-psd-main.zip (12个子文件)
is-psd-main
fixture.psd 101KB
.gitignore 23B
fixture.png 53KB
package.json 667B
.npmrc 19B
index.js 195B
test.js 248B
.github
workflows
main.yml 464B
license 1KB
readme.md 874B
.gitattributes 29B
.editorconfig 175B
共 12 条
- 1
资源评论
鸡糟的黄医桑
- 粉丝: 25
- 资源: 4637
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功