For many years I’ve been using FakerJS library to generate fake realistic random data in my test automation projects. Recently I discovered ChanceJS and I am happy with it. This article will show you how to use this library and my perspective about why would I consider using it from now on.
Size significantly smaller (~12 times)
node_modules with faker (v.8.1.0) package = 30.5MB
node_modules with chance (v1.1.11) package = 2.6MB
Same things, different syntax

TUTORIAL
Prerequisites: NodeJS & NPM
Installation: npm install chance
Examples & Results:

If you liked this article, then please subscribe to my YouTube Channel for Test Automation video tutorials. You can also find me on LinkedIn and Twitter.