terminal-image:在终端中显示图像

时间:2021-02-04 04:22:52
【文件属性】:
文件名称:terminal-image:在终端中显示图像
文件大小:611KB
文件格式:ZIP
更新时间:2021-02-04 04:22:52
nodejs image npm-package cli-utility terminal-image 终端图像 在终端中显示图像 在支持颜色的任何终端中均可使用。 在iTerm,由于iTerm具有,因此图像将以。 安装 $ npm install terminal-image 用法 const terminalImage = require ( 'terminal-image' ) ; ( async ( ) => { console . log ( await terminalImage . file ( 'unicorn.jpg' ) ) ; } ) ( ) ; (可选)您可以指定height和/或width来缩放图像。 这可以是终端窗口的百分比,也可以是行和/或列的数量。 请注意,
【文件预览】:
terminal-image-main
----.gitignore(23B)
----package.json(980B)
----.npmrc(19B)
----example-gif.js(89B)
----fixture.gif(68KB)
----index.js(4KB)
----test.js(869B)
----.github()
--------workflows()
--------funding.yml(91B)
----fixture.jpg(125KB)
----screenshot.png(116KB)
----license(1KB)
----example.js(127B)
----screenshot-iterm.jpg(346KB)
----readme.md(4KB)
----index.test-d.ts(330B)
----.gitattributes(19B)
----.editorconfig(175B)
----index.d.ts(9KB)

网友评论