【文件属性】:
文件名称:image-size-stream:从流中获取图像尺寸
文件大小:2.44MB
文件格式:ZIP
更新时间:2021-05-14 09:19:43
stream buffer images dimensions JavaScript
图像尺寸流
一个模块,用于获取任何图像文件流的尺寸
支持的格式
骨形态发生蛋白
GIF
JPEG格式
PNG
PSD素材
DDS
即将来临
主权财富基金
UR
代币发行
集成电路
TIFF
WebP
SVG
程序用法
yarn add image-dimensions-stream
例子
const ImageDimensionsStream = require ( 'image-dimensions-stream' ) ;
const pipeline = util . promisify ( require ( 'stream' ) . pipeline ) ;
async function main ( ) {
const sizeStream = new ImageDimensionsStream ( ) ;
let result = {
mime : n
【文件预览】:
image-size-stream-master
----.gitignore(36B)
----package.json(709B)
----src()
--------index.js(7KB)
--------types()
--------BaseType.js(2KB)
--------errors.js(3KB)
----LICENSE(1KB)
----docker-compose.yml(256B)
----README.md(2KB)
----.npmignore(66B)
----.gitattributes(12B)
----test()
--------index.js(3KB)
--------types()
----yarn.lock(0B)