4 ms·
Maintainer of Chalk[0][1] here, a very popular alternative to colors. Happy to help anyone that would like to port away from colors to chalk, or who might just
by junon 5y ago
Maintainer of Chalk[0][1] here, a very popular alternative to colors. Happy to help anyone that would like to port away from colors to chalk, or who might just have general questions about terminal colors.
Just reply here and I'll see them.
[0] https://GitHub.com/chalk/chalk https://GitHub.com/chalk/chalk
[1] https://npmjs.org/package/chalk https://npmjs.org/package/chalk
- dimgl 5y agoI love Chalk! I didn't realize it came after colors. Thanks for maintaining this package.
- feupan 5y agoIs a codemod available for anyone who wants to migrate?
- junon 5y agoNot at the moment, but the migration should be pretty straightforward if you don't use the more elaborate color functions from `colors` (e.g. we don't have things like "zebra"). If you use `require('colors/safe')` and only use the basic colors, then Chalk is more or less a drop-in replacement. If you use the property values (e.g. `"my string".green`) then you'll need to change that to `chalk.green("my string")`.
- jwalton 5y agoOne thing worth noting is that chalk 5 is ESM only, so if you’re using commonjs, you’ll need to use chalk 4, or transpire it with Babel, or something…
- peterangular 5y agoI use the hell out of chalk and I just want to say thank you for creating/maintaining a solid product. Seeing this is scary to us who still unfortunately have dependencies with Node/npm. Thank you so much for what you do.
- pkgland 5y agoNot a question but just want to help developers who needs it: pkg.land (beta) finds similar packages on NPM. Here are the links for colors and faker: https://pkg.land/package/colors https://pkg.land/package/colors (chalk is top suggestion!) https://pkg.land/package/faker https://pkg.land/package/faker
- DandyDev 5y agoThis is very cool. Sad that it only works for NPM packages. Would love this for PyPI packages
- mazlix 5y agoNever used colorjs, have used chalk in my OSS projects and love it. Guess now's a good time show appreciation to maintainers so thank you.
- tasha0663 5y ago