UNPKG

@visulima/ansi

Version:

ANSI escape codes for some terminal swag.

2 lines (1 loc) 370 B
import{OSC as a,BEL as h}from"./constants.js";import{a as s}from"./packem_shared/base64-DCRChUPq.js";const g=(i,e={})=>{let t=`${a}1337;File=inline=1`;e.width!==void 0&&(t+=`;width=${String(e.width)}`),e.height!==void 0&&(t+=`;height=${String(e.height)}`),e.preserveAspectRatio===!1&&(t+=";preserveAspectRatio=0");const r=s(i);return`${t}:${r}${h}`};export{g as image};