Giter Site home page Giter Site logo

Newlines get stripped out about boxen HOT 6 CLOSED

sindresorhus avatar sindresorhus commented on May 29, 2024
Newlines get stripped out

from boxen.

Comments (6)

Caesarovich avatar Caesarovich commented on May 29, 2024 1

New version will be out soon, stay tuned @yannbf and @gandalf3 . By the way Storybooks looks awesome I need to get a look into it ;)

from boxen.

yannbf avatar yannbf commented on May 29, 2024

I second this, we're using this library in Storybook and we love it, but the result in CI is very tough to read, and the content gets a little messy when the users resize their terminal:
2022-12-16 13 56 24

However, if there is always a new line, the result is perfect:
2022-12-16 13 57 36

from boxen.

yannbf avatar yannbf commented on May 29, 2024

Additionally, we are also using boxen to visualize the terminal output in Storybook, so we can get visual regression and demo benefits.

Unfortunately, given that the newlines are not present, it looks really off, as the whole string is a single line:
image

If I make changes in the boxen source to always include new lines, it looks pretty cool:
image

from boxen.

yannbf avatar yannbf commented on May 29, 2024

oh my gosh this is perfect!! thank you so so much @Caesarovich !! I'll make sure to prepare that Storybook and make it available, showing the awesomeness of boxen 🙆

from boxen.

ndelangen avatar ndelangen commented on May 29, 2024

@yannbf I had no reason to push this before: storybookjs/storybook#20134

But now there might be a need to merge this soon?
So that we can start using ESM-only packages in core-server?

from boxen.

Caesarovich avatar Caesarovich commented on May 29, 2024

https://github.com/sindresorhus/boxen/releases/tag/v7.0.1 version 7.0.1 is now out !

Thanks for the support and the interest shown in boxen @yannbf :)

Boxen has already moved to ESM if that was your concern @ndelangen

I'll close this issue now, we'll wait for the feedback

from boxen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.