term-img alternatives and similar modules
Based on the "Command Line Utilities" category.
Alternatively, view term-img alternatives based on common mentions on social networks and blogs.
-
nvm
Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions -
Inquirer.js
A collection of common interactive command line user interfaces. -
KeyboardJS
A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts. -
omelette
Omelette is a simple, template based autocompletion tool for Node and Deno projects with super easy API. (For Bash, Zsh and Fish) -
log-update
Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc. -
configstore
Easily load and persist config without having to think about where and how -
insight
Node.js module to help you understand how your tool is being used by anonymously reporting usage metrics to Google Analytics -
Javascript library for 2d geometry
Javascript library for 2d geometry -
columnify
Create text-based columns suitable for console output. Supports cell wrapping. -
string-width
Get the visual width of a string - the number of columns required to display it -
loud-rejection
Make unhandled promise rejections fail loudly instead of the default silent fail -
multispinner
Multiple, simultaneous, individually controllable spinners for concurrent tasks in Node.js CLI programs -
googleauth
Create and load persistent Google authentication tokens for command-line apps -
licenseye
Node.js CLI tool to visualize an aggregate list of your dependencies' licenses -
cron-to-quartz
Node.js library to convert unix or linux CRON syntax to Quartz Scheduler
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of term-img or a related project?
README
term-img 
Display images in iTerm
You probably want the higher-level terminal-image
package for displaying your images.
[](screenshot.jpg)
Even animated gifs!
Currently only supported on iTerm >=3.
Install
$ npm install term-img
Usage
const termImg = require('term-img');
function fallback() {
// Return something else when not supported
}
console.log(termImg('unicorn.jpg', {fallback}));
API
termImg(image, options?)
Get the image as a string
that you can log manually.
image
Type: string | Buffer
Filepath to an image or an image as a buffer.
options
Type: object
width
height
Type: 'auto' | string | number
The width and height are given as a number followed by a unit, or the word 'auto'
.
N
: N character cells.Npx
: N pixels.N%
: N percent of the session's width or height.auto
: The image's inherent size will be used to determine an appropriate dimension.
preserveAspectRatio
Type: boolean
\
Default: true
fallback
Type: Function
\
Default: () => throw new UnsupportedTerminalError()
Enables you to do something else when the terminal doesn't support images.
Related
- term-img-cli - CLI for this module