For those out of the loop, there are recently some drama about the NPM packages colors
and faker
, and here are some articles reporting about it:
Open source maintainer pulls the plug on npm packages colors and faker, now what?
Dev corrupts NPM libs 'colors' and 'faker' breaking thousands of apps
This blog is not to criticise on what happened, but to offer some help for developers who are interested in alternatives for colors
and faker
.
Top alternatives for colors
chalk
Terminal string styling done right
https://npm.im/chalk (131M weekly downloads)
https://github.com/chalk/chalk (17k stars)
colorette
Easily set your terminal text color & styles.
https://npm.im/colorette (16.9M weekly downloads)
https://github.com/jorgebucaran/colorette (1.4k stars)
kleur
The fastest Node.js library for formatting terminal text with ANSI colors~!
https://npm.im/kleur (11.8M weekly downloads)
https://github.com/lukeed/kleur (1.3k stars)
👀 More suggestions ➡️ https://pkg.land/colors
Top alternatives for faker
chance
Chance - Utility library to generate anything random
https://npm.im/chance (589.3k weekly downloads)
https://github.com/chancejs/chancejs (5.8k stars)
casual
Fake data generator
https://npm.im/casual (57k weekly downloads)
https://github.com/boo1ean/casual (2.8k stars)
typeorm-seeding
(useful if you use typeorm)
A delightful way to seed test data into your database
https://npm.im/typeorm-seeding (35k weekly downloads)
https://github.com/w3tecch/typeorm-seeding (700 stars)
👀 More suggestions ➡️ https://pkg.land/faker
⭐️ ⭐️ ⭐️
psst: https://pkg.land (beta) finds similar packages on NPM for you! check it out, go search moment
, request
and more 🚀
Do you know any good alternatives for colors
or faker
to suggest to the community? Leave a comment below!
Top comments (4)
Why use an alternative to faker.js when you just can use the new home?: github.com/faker-js/faker |
npm add -D @faker-js/faker
And about colors.js, Microsoft thinks about to include it in NodeJS natively github.com/microsoft/rushstack/iss...
Hi, didn't knew about the new repository thanks for sharing! This article is to offer options to develops who need it and the final decision is still down to them.
absolutely understandable 🙂
The good stuff about the new home is that it is full compatible with the old one
We even re-published ALL previous versions!
So if you have e.g. already a project with hundreds of usages of faker, it's an easy swap in-out.
in 2024 most popular alternatives for
colors
:Compare of alternative packages