question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Here are the goals for Chalk 3:

  • Drop support for Node.js 4
  • Bundle all dependencies at publish-time. I would usually never do this, but Chalk is one of the most popular packages on npm. We could use Browserify or Webpack something to make it a single file.
  • require('chalk/lite') which only includes support for 16-bit. For when you need something fast and simple for logging.
  • Move to class-based construction: #188
  • Improve speed, both require speed (#180) and execution speed (https://github.com/chalk/chalk/issues/333). For execution speed we could add fast-paths for when only using 16 colors, which is the most common use-case.
  • Stop using the color-convert module. It’s too slow and flexible. We don’t really need that many ways of specifying colors. I would prefer to support just keywords, HEX, RGB. I’m honestly not sure if this is feasible. Just an idea for improving the package size and performance. Alternatively, make color-convert tree-shakable, so we only get the parts we actually need.
  • Browser DevTools support built-in? This has been a common request and as long as it doesn’t require too much code (and no new dependencies), I welcome a PR adding it.

We welcome contributions to help with this effort and ideas for the v3 goals. 🙌


@Qix- Thoughts? Anything else?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:33
  • Comments:53 (26 by maintainers)

github_iconTop GitHub Comments

22reactions
sindresorhuscommented, Sep 21, 2018

Any interest in rewriting it in Flow?

No, I’m used to TypeScript and prefer that.

12reactions
callumlockecommented, Sep 20, 2018

I’m open to someone rewriting Chalk in TypeScript if they also do #188.

Any interest in rewriting it in Flow? Either way it would be good to provide out-of-the-box type definitions for both TypeScript and Flow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

83 Roadmaps ideas - Pinterest
Apr 22, 2012 - Explore Bent Bilstrup's board "Roadmaps" on Pinterest. See more ideas about roadmap, infographic, social media infographic.
Read more >
Roadmapping: Your starter guide - AHA.io
A roadmap is a visual representation of your strategic plans. In this guide you'll learn how roadmaps can help turn your team's aspirations...
Read more >
7 Examples of Excellent Product Roadmaps | Productboard
These 7 product roadmap examples can help you communicate your product strategy in a way that's easily understood.
Read more >
9 business roadmap examples for scaling your organization
Discover business roadmap examples for scaling your organization. Plan and build your company roadmap using one of our free templates.
Read more >
8 Ways to Turn Product Ideas Into a Prioritized ... - FullStory
Learn how to find your product's "North Star" and discover tried-and-true tactics for turning ideas into tangible product roadmaps.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found