{"id":530,"date":"2023-10-02T09:30:58","date_gmt":"2023-10-02T09:30:58","guid":{"rendered":"https:\/\/razvanvancea.ro\/blog\/?p=530"},"modified":"2024-09-27T09:54:33","modified_gmt":"2024-09-27T09:54:33","slug":"chancejs-a-faker-alternative-for-generating-random-realistic-data","status":"publish","type":"post","link":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/","title":{"rendered":"ChanceJS &#8211; a Faker alternative for generating random realistic data?"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"530\" class=\"elementor elementor-530\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ca759e7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ca759e7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-089f245\" data-id=\"089f245\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f267ccc elementor-widget elementor-widget-text-editor\" data-id=\"f267ccc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>For many years I&#8217;ve been using <a href=\"https:\/\/fakerjs.dev\/\" target=\"_blank\" rel=\"noopener\">FakerJS library<\/a> to <strong>generate fake realistic random data<\/strong> in my test automation projects. Recently I discovered <a href=\"https:\/\/chancejs.com\/\" target=\"_blank\" rel=\"noopener\">ChanceJS<\/a> 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.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1614da0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1614da0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-71549f0\" data-id=\"71549f0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8649c30 elementor-widget elementor-widget-heading\" data-id=\"8649c30\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Size significantly smaller (~12 times)<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1aba32e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1aba32e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-76b0930\" data-id=\"76b0930\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7013654 elementor-widget elementor-widget-text-editor\" data-id=\"7013654\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>node_modules with faker (v.8.1.0) package =\u00a0<strong>30.5MB<\/strong><\/p><p>node_modules with chance (v1.1.11) package =\u00a0<strong>2.6MB<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ae5bb06 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ae5bb06\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-da65a33\" data-id=\"da65a33\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c0cf019 elementor-widget elementor-widget-heading\" data-id=\"c0cf019\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Same things, different syntax<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2a4ef79 elementor-widget elementor-widget-image\" data-id=\"2a4ef79\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1536\" height=\"267\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.29.16-1536x267.png\" class=\"attachment-1536x1536 size-1536x1536 wp-image-534\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.29.16-1536x267.png 1536w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.29.16-300x52.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.29.16-1024x178.png 1024w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.29.16-768x134.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.29.16-850x148.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.29.16-24x4.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.29.16-36x6.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.29.16-48x8.png 48w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.29.16.png 1760w\" sizes=\"(max-width: 1536px) 100vw, 1536px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-77fc646 elementor-widget elementor-widget-spacer\" data-id=\"77fc646\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1a5cfa6 elementor-widget elementor-widget-heading\" data-id=\"1a5cfa6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">TUTORIAL<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f5e0d79 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f5e0d79\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-319475c\" data-id=\"319475c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-95cd3c3 elementor-widget elementor-widget-text-editor\" data-id=\"95cd3c3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre><strong>Prerequisites<\/strong>: NodeJS &amp; NPM<\/pre><p><strong>Installation<\/strong>: npm install chance<\/p><p><strong>Examples &amp; Results:<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-879bdaa elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"879bdaa\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4abb491\" data-id=\"4abb491\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-565dce8 elementor-widget elementor-widget-image\" data-id=\"565dce8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"591\" height=\"553\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.13.08.png\" class=\"attachment-large size-large wp-image-532\" alt=\"chancejs-demo\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.13.08.png 591w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.13.08-300x281.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.13.08-24x22.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.13.08-36x34.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-02-at-12.13.08-48x45.png 48w\" sizes=\"(max-width: 591px) 100vw, 591px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7a80a8c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7a80a8c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8ddaa26\" data-id=\"8ddaa26\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c615105 elementor-widget elementor-widget-text-editor\" data-id=\"c615105\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Enjoyed this article? Make sure to subscribe to my <em><a href=\"https:\/\/www.youtube.com\/@LearnwithRV\" target=\"_blank\" rel=\"noopener\">YouTube Channel<\/a><\/em> for more Test Automation tutorials, and follow me on <a href=\"https:\/\/www.linkedin.com\/in\/razvanvancea\/\" target=\"_blank\" rel=\"noopener\"><em>LinkedIn<\/em><\/a> and <em><a href=\"https:\/\/twitter.com\/razvanvancea\" target=\"_blank\" rel=\"noopener\">Twitter<\/a><\/em> for regular insights.<strong> <br \/>Looking to accelerate your test automation journey? <br \/>I&#8217;ve designed a personalized 1-on-1 mentoring program tailored to boost your skills. Reach out at <a rel=\"noopener\">iamqarv@gmail.com<\/a> for more details \ud83d\ude80<br \/><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5ad4a38 elementor-widget elementor-widget-video\" data-id=\"5ad4a38\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/ncUtGkgTQ7g?si=l12u37A_uhSJx18L&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>For many years I&#8217;ve been using FakerJS library to generate fake realistic random data in&#8230;<\/p>\n","protected":false},"author":2,"featured_media":539,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[10,11],"tags":[],"class_list":["post-530","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-qa"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"For many years I\u2019ve 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\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Razvan Vancea\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Learn with RV - Tech Blog - #testautomation #qa #programming #linux #devops\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"ChanceJS \u2013 a Faker alternative for generating random realistic data? - Learn with RV - Tech Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"For many years I\u2019ve 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\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-10-02T09:30:58+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-09-27T09:54:33+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/razvanvancea\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@RazvanVancea\" \/>\n\t\t<meta name=\"twitter:title\" content=\"ChanceJS \u2013 a Faker alternative for generating random realistic data? - Learn with RV - Tech Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"For many years I\u2019ve 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\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@RazvanVancea\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#blogposting\",\"name\":\"ChanceJS \\u2013 a Faker alternative for generating random realistic data? - Learn with RV - Tech Blog\",\"headline\":\"ChanceJS &#8211; a Faker alternative for generating random realistic data?\",\"author\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/chance-logo.png\",\"width\":1920,\"height\":1080,\"caption\":\"chance-logo\"},\"datePublished\":\"2023-10-02T09:30:58+00:00\",\"dateModified\":\"2024-09-27T09:54:33+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#webpage\"},\"articleSection\":\"Programming, QA\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/programming\\\/#listItem\",\"name\":\"Programming\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/programming\\\/#listItem\",\"position\":2,\"name\":\"Programming\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/programming\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#listItem\",\"name\":\"ChanceJS &#8211; a Faker alternative for generating random realistic data?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#listItem\",\"position\":3,\"name\":\"ChanceJS &#8211; a Faker alternative for generating random realistic data?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/programming\\\/#listItem\",\"name\":\"Programming\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\",\"name\":\"RV\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#personImage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/91ce41471f9ba5f15b3ef99e7deed87c.jpg?ver=1785997097\",\"width\":96,\"height\":96,\"caption\":\"RV\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/razvanvancea\\\/\",\"https:\\\/\\\/twitter.com\\\/RazvanVancea\",\"https:\\\/\\\/www.youtube.com\\\/@LearnwithRV\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/razvanvancea\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/\",\"name\":\"Razvan Vancea\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#authorImage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/356548feb901191539c03dd4a0498f58.jpg?ver=1785997099\",\"width\":96,\"height\":96,\"caption\":\"Razvan Vancea\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#webpage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/\",\"name\":\"ChanceJS \\u2013 a Faker alternative for generating random realistic data? - Learn with RV - Tech Blog\",\"description\":\"For many years I\\u2019ve 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\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/chance-logo.png\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#mainImage\",\"width\":1920,\"height\":1080,\"caption\":\"chance-logo\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/10\\\/02\\\/chancejs-a-faker-alternative-for-generating-random-realistic-data\\\/#mainImage\"},\"datePublished\":\"2023-10-02T09:30:58+00:00\",\"dateModified\":\"2024-09-27T09:54:33+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/\",\"name\":\"Learn with RV - Tech Blog\",\"description\":\"#testautomation #qa #programming #linux #devops\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"ChanceJS \u2013 a Faker alternative for generating random realistic data? - Learn with RV - Tech Blog","description":"For many years I\u2019ve 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","canonical_url":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#blogposting","name":"ChanceJS \u2013 a Faker alternative for generating random realistic data? - Learn with RV - Tech Blog","headline":"ChanceJS &#8211; a Faker alternative for generating random realistic data?","author":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"publisher":{"@id":"https:\/\/razvanvancea.ro\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/chance-logo.png","width":1920,"height":1080,"caption":"chance-logo"},"datePublished":"2023-10-02T09:30:58+00:00","dateModified":"2024-09-27T09:54:33+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#webpage"},"isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#webpage"},"articleSection":"Programming, QA"},{"@type":"BreadcrumbList","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/razvanvancea.ro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/programming\/#listItem","name":"Programming"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/programming\/#listItem","position":2,"name":"Programming","item":"https:\/\/razvanvancea.ro\/blog\/category\/programming\/","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#listItem","name":"ChanceJS &#8211; a Faker alternative for generating random realistic data?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#listItem","position":3,"name":"ChanceJS &#8211; a Faker alternative for generating random realistic data?","previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/programming\/#listItem","name":"Programming"}}]},{"@type":"Person","@id":"https:\/\/razvanvancea.ro\/blog\/#person","name":"RV","image":{"@type":"ImageObject","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#personImage","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/litespeed\/avatar\/91ce41471f9ba5f15b3ef99e7deed87c.jpg?ver=1785997097","width":96,"height":96,"caption":"RV"},"sameAs":["https:\/\/www.facebook.com\/razvanvancea\/","https:\/\/twitter.com\/RazvanVancea","https:\/\/www.youtube.com\/@LearnwithRV","https:\/\/www.linkedin.com\/in\/razvanvancea"]},{"@type":"Person","@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author","url":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/","name":"Razvan Vancea","image":{"@type":"ImageObject","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#authorImage","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/litespeed\/avatar\/356548feb901191539c03dd4a0498f58.jpg?ver=1785997099","width":96,"height":96,"caption":"Razvan Vancea"}},{"@type":"WebPage","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#webpage","url":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/","name":"ChanceJS \u2013 a Faker alternative for generating random realistic data? - Learn with RV - Tech Blog","description":"For many years I\u2019ve 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","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#breadcrumblist"},"author":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"creator":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/chance-logo.png","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#mainImage","width":1920,"height":1080,"caption":"chance-logo"},"primaryImageOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/#mainImage"},"datePublished":"2023-10-02T09:30:58+00:00","dateModified":"2024-09-27T09:54:33+00:00"},{"@type":"WebSite","@id":"https:\/\/razvanvancea.ro\/blog\/#website","url":"https:\/\/razvanvancea.ro\/blog\/","name":"Learn with RV - Tech Blog","description":"#testautomation #qa #programming #linux #devops","inLanguage":"en-US","publisher":{"@id":"https:\/\/razvanvancea.ro\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Learn with RV - Tech Blog - #testautomation #qa #programming #linux #devops","og:type":"article","og:title":"ChanceJS \u2013 a Faker alternative for generating random realistic data? - Learn with RV - Tech Blog","og:description":"For many years I\u2019ve 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","og:url":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/","article:published_time":"2023-10-02T09:30:58+00:00","article:modified_time":"2024-09-27T09:54:33+00:00","article:publisher":"https:\/\/www.facebook.com\/razvanvancea","twitter:card":"summary_large_image","twitter:site":"@RazvanVancea","twitter:title":"ChanceJS \u2013 a Faker alternative for generating random realistic data? - Learn with RV - Tech Blog","twitter:description":"For many years I\u2019ve 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","twitter:creator":"@RazvanVancea"},"aioseo_meta_data":{"post_id":"530","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-10-02 09:02:54","updated":"2025-06-06 10:01:20","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\/category\/programming\/\" title=\"Programming\">Programming<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tChanceJS \u2013 a Faker alternative for generating random realistic data?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/razvanvancea.ro\/blog"},{"label":"Programming","link":"https:\/\/razvanvancea.ro\/blog\/category\/programming\/"},{"label":"ChanceJS &#8211; a Faker alternative for generating random realistic data?","link":"https:\/\/razvanvancea.ro\/blog\/2023\/10\/02\/chancejs-a-faker-alternative-for-generating-random-realistic-data\/"}],"jetpack_featured_media_url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/10\/chance-logo.png","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/comments?post=530"}],"version-history":[{"count":11,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/530\/revisions"}],"predecessor-version":[{"id":855,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/530\/revisions\/855"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media\/539"}],"wp:attachment":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media?parent=530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/categories?post=530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/tags?post=530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}