在终端中显示图像-Node.js开发

时间:2024-06-16 03:42:41
【文件属性】:

文件名称:在终端中显示图像-Node.js开发

文件大小:611KB

文件格式:ZIP

更新时间:2024-06-16 03:42:41

Node.js Command-line utilities

terminal-image在终端中显示图像可在支持颜色的任何终端中使用。 在iTerm中,由于iTerm具有特殊的图像支持,因此图像将以全分辨率显示。 在终端中显示$ npm instal terminal-image在终端中显示图像在任何支持颜色的终端中均可使用。 在iTerm中,由于iTerm具有特殊的图像支持,因此图像将以全分辨率显示。 安装$ npm install terminal-image用法const terminalImage = require('terminal-image'); (async()=> {console.log(await terminalImage.file('unicorn.jpg'));})(); (可选)您可以指定高度和/或宽度来缩放图像。 可以是终端窗口的百分比,也可以是


【文件预览】:
terminal-image-main
----index.js(4KB)
----test.js(883B)
----package.json(1KB)
----index.test-d.ts(333B)
----readme.md(4KB)
----.github()
--------workflows()
----license(1KB)
----screenshot-iterm.jpg(346KB)
----example.js(117B)
----screenshot.png(116KB)
----fixture.jpg(125KB)
----index.d.ts(8KB)
----.gitignore(23B)
----example-gif.js(79B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(19B)
----fixture.gif(68KB)

网友评论