Is it possible to use it as a package for other project as well?
It's not an installable package but you're free to cannibalize the code if you want. I'm mainly using Charm's golang libraries to chunk the different ascii / unicode characters together. You can find the main processing code in the ascii.go, unicode.go, and custom.go files here (sorry for the lack of documentation): https://github.com/Zebbeni/ansizalizer/tree/main/app/process