Git Product home page Git Product logo

Comments (5)

dthree avatar dthree commented on May 22, 2024 2

Chalk FTW

from trymodule.

dthree avatar dthree commented on May 22, 2024 2

@victorbjelkholm all of Chalk's deps are maintained by the same author, and are like 7kb or less. Not a biggie.

I would consider extending the String prototype a much more concerning proposition than a few tiny deps by the same (trusted) author.

from trymodule.

victorb avatar victorb commented on May 22, 2024

So, I've checked out both cli-color and chalk. Both seems good but introduces many dependencies compared to colors. One reason why colors have been my go-to module when it comes to colors in the terminal, is because of the simplicity and zero dependencies.

So unless someone else can recommend another zero dependency module instead of colors, I'll close this and live with colors.

from trymodule.

victorb avatar victorb commented on May 22, 2024

The network requests are the overhead really, and I would prefer to have a small number of tiny dependencies rather that a big number of them

Yeah, I'm not relying on any of the String prototype stuff that colors provide, although it does seem like I'm missusing it, and should use require('colors/safe') instead of just require('colors'). https://github.com/Marak/colors.js/blob/master/lib/index.js#L8

from trymodule.

dthree avatar dthree commented on May 22, 2024

Okay, cool. Up to you, man. But thats my two cents. 😄

from trymodule.

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.