Releases: patorjk/figlet.js
Releases · patorjk/figlet.js
v1.8.0
Minor Update
- Added support for "npx figlet text".
- Added Prettier.
- Partially modernized code (ex: replaced vars with lets/consts, replaced substr with substring).
Minor bug fixes
- Fixed whitespace characters in ANSI Regular font (https://github.com/patorjk/figlet.js/blob/master/fonts/ANSI%20Regular.flf).
- Fixed smushing issue with Slant font (#61).
- Array prototype update (#76).
- Updated dependencies in package-lock.
Added width and whitespaceBreak options
2 new options have been added to the options object:
- width: Allows you to limit the output text to a specified number of characters (ex: 80).
- whitespaceBreak: Works in conjunction with width. If set to true, the text will attempt to break whitespaces.
Thanks goes to @jcubic for working on this and submitting the PR.