supports-sixel
v1.0.0
Published
Detect whether a terminal can display sixels.
Downloads
6
Readme
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.