JSFiddle - React, Tailwind, and code Playground

by Scott Kaye

JavaScript

s="OLB",z=56,c=document.createElement`canvas`,x=c.getContext`2d`
x.font=`700 ${z}pt monospace`,x.fillText(s,0,z)
m=x.getImageData(0,7,z*s.length,z-6)

let out = m.data.reduce((a,c,i)=>i%4^3?a:a+(c>50?0:` `)+(i%(m.width*4)^3?``:`
`),``)

console.log(out);