DEV Community

Cover image for ๐Ÿ“ฆ Top alternatives for "colors" and "faker"
pkg.land ๐Ÿ“ฆ
pkg.land ๐Ÿ“ฆ

Posted on • Updated on

๐Ÿ“ฆ Top alternatives for "colors" and "faker"

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:

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!

Oldest comments (3)

Collapse
 
shinigami92 profile image
Shinigami

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...

Collapse
 
pkgland profile image
pkg.land ๐Ÿ“ฆ

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.

Collapse
 
shinigami92 profile image
Shinigami

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.