supports-sixel Detect whether a terminal can display sixels. Install npm install supports-sixel Usage const supportsSixel = require("supports-sixel"); (async () => { const isSupported = await supportsSixel(); console.log(isSupported ? "Sixels are supported!" : "Sixels aren't supported!");})(); API supportsSixel() Returns a promise that resolves with a boolean. Related replied - Log ansi codes and get the stdin response.