A homebrewed library to layout text in a canvas. It can split text into lines, align them, and place them in a containing box, respecting alignment, and more.
$ yarn add @cprecioso/canvas-text-layout # if you use yarn
$ npm install @cprecioso/canvas-text-layout # if you use npm
Check out the API documentation for more information.