@isdk/artistic-text
Version:
Generates artistic text with custom fonts and color.
1 lines • 439 B
JavaScript
import e from"ansi-colors";import r from"figlet";var n=r.textSync,t=new Set(["Gradient","Hex","Trek","Term","Runic","Runyc","Rot13","Octal","Mshebrew210","Mike","1Row","DWhistled","Tengwar","Small Tengwar","Benjamin"]),a=r.fontsSync().filter((e=>!t.has(e)));function o(r,t={}){const o=t.color||"gray";var i;t.font||(t.font=a[(i=a.length,Math.floor(Math.random()*i))]);let l=n(r,t);return"none"!==o&&(l=e[o](l)),l}export{o as artisticText};