Comments (6)
Currently there isn't a way, this is a good idea though and would be easy to add. I'll try and look into this later this week.
from figlet.js.
When can we use this feature?
from figlet.js.
@patorjk do you accept PRs? There are two open, I may take a look and see if I will be able to create line wrapping.
PS: this project is awesome I use in to demo my library jQuery Terminal https://codepen.io/jcubic/pen/VwvEvmN
from figlet.js.
Yep, I’ve accepted 19 in total. I’d be open to this feature as long as it didn’t negatively effect other things. I looked into it a long time ago but can’t remember why I didn’t add it.
The two PRs outstanding: one looks like spam (I’ve been meaning to take a closer look and close it) and the other changes the formatting of the library (I prefer PRs to be specific and not so multiple things).
from figlet.js.
Ok, will create PR, I have already working line wrapping, but it don't handle whitespaces yet.
I will use options: width
and whitespaceBreak
maybe, if width
is set it will check the value of whitespaceBreak
if it's true it will break the ASCII text on closest whitespae otherwise it will break the words.
from figlet.js.
Feature added as of version 1.5.0. Release notes here: https://github.com/patorjk/figlet.js/releases/tag/1.5.0
from figlet.js.
Related Issues (20)
- Examples directory of the repository is part of the NPM package HOT 3
- can't find font file HOT 3
- Slant front weird rendering HOT 13
- How to use different colors HOT 3
- [ PLS HELP ] want to change the header text , but in bash.bashrc file there is no written text HOT 1
- Possibility to add one empty line at the top/beginning HOT 2
- Can this library be used in ES without webpack? HOT 4
- Cannot read property 'reduce' of undefined HOT 2
- Can blank lines be preserved?
- Problem with code that pollute array prototype
- small slant.flf does not work in Ubuntu HOT 2
- TypeError: Cannot read properties of undefined (reading 'reduce') HOT 6
- Typo in README.md
- Readability issues in README.md
- TTF -> FLF? HOT 2
- Cannot find module figlet HOT 1
- [README] Build Status Shield Button Not Working HOT 1
- Question: Why doesn't figlet return the new text and why is error the first parameter of the callback? HOT 1
- [Suggestion] Way to import every font using Webpack
- Error: Cannot find module 'figlet'(已经重新安装依赖还是如此)node v16.20.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from figlet.js.