{"id":20924164,"url":"https://github.com/s-pro/node-elizabeth","last_synced_at":"2026-03-17T20:34:07.948Z","repository":{"id":57152480,"uuid":"92284628","full_name":"S-PRO/node-elizabeth","owner":"S-PRO","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-07T06:39:22.000Z","size":2326,"stargazers_count":46,"open_issues_count":0,"forks_count":5,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-06-01T12:56:26.057Z","etag":null,"topics":["data","dummy","fake","fake-data","javascript","mock","mocking","nodejs"],"latest_commit_sha":null,"homepage":"https://s-pro.github.io/node-elizabeth/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/S-PRO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-24T11:24:01.000Z","updated_at":"2023-02-08T11:59:05.000Z","dependencies_parsed_at":"2022-08-27T16:20:57.528Z","dependency_job_id":null,"html_url":"https://github.com/S-PRO/node-elizabeth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/S-PRO%2Fnode-elizabeth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/S-PRO%2Fnode-elizabeth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/S-PRO%2Fnode-elizabeth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/S-PRO%2Fnode-elizabeth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/S-PRO","download_url":"https://codeload.github.com/S-PRO/node-elizabeth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/S-PRO%2Fnode-elizabeth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259085431,"owners_count":22803198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","dummy","fake","fake-data","javascript","mock","mocking","nodejs"],"created_at":"2024-11-18T20:19:51.421Z","updated_at":"2026-03-17T20:34:07.883Z","avatar_url":"https://github.com/S-PRO.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](logo.png)\n\n[![NPM](https://nodei.co/npm/node-elizabeth.png)](https://npmjs.org/package/node-elizabeth)\n\n[![Build Status](https://travis-ci.org/S-PRO/node-elizabeth.svg?branch=master)](https://travis-ci.org/S-PRO/node-elizabeth)\n[![Coverage Status](https://coveralls.io/repos/github/S-PRO/node-elizabeth/badge.svg?branch=master)](https://coveralls.io/github/S-PRO/node-elizabeth?branch=master)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/13b3096bd026452a9b856c5bab8fb2a5)](https://www.codacy.com/app/aybb/node-elizabeth_2?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=S-PRO/node-elizabeth\u0026amp;utm_campaign=Badge_Grade)\n\nDescription\n===========\nnode-elizabeth is a port of Python library\n[elizabeth](https://github.com/lk-geimfari/elizabeth) for\ngenerating dummy data for a variety of purposes.\nThis data can be particularly useful during\nsoftware development and testing.\nFor example, it could be used to populate\na testing database for a web application\nwith user information such as email\naddresses, usernames, first names, last names, etc.\n\nInstallation\n============\n`yarn add node-elizabeth -D`\n\nDocumentation\n=============\n[Github pages](https://s-pro.github.io/node-elizabeth/)\n\nBasic Usage\n===========\n\n```javascript\nimport { Personal } from 'node-elizabeth';\n// default locale is 'en'\nconst person = new Personal();\nperson.fullName({ gender: 'male' });\n// Inell Britt\n```\n\nLocales\n=======\nYou can specify a locale when creating providers and\nthey will return data that is appropriate for\nthe language or country associated\nwith that locale. `elizabeth` currently includes support\nfor 30 different locales.\n\n| №  | Flag  | Code       | Name                 | Native name |\n|--- |---   |---       |---                 |---         |\n| 1  | 🇨🇿   |  `cs`      | Czech                | Česky       |\n| 2  | 🇩🇰   |  `da`      | Danish               | Dansk       |\n| 3  | 🇩🇪   |  `de`      | German               | Deutsch     |\n| 4  | 🇦🇹   |  `de-at`   | Austrian German      | Deutsch     |\n| 5  | 🇨🇭   |  `de-ch`   | Swiss German         | Deutsch     |\n| 6  | 🇺🇸   |  `en`      | English              | English     |\n| 7  | 🇦🇺   |  `en-au`   | Australian English   | English     |\n| 8  | 🇨🇦   |  `en-ca`   | Canadian English     | English     |\n| 9  | 🇬🇧   |  `en-gb`   | British English      | English     |\n| 10 | 🇪🇸   |  `es`      | Spanish              | Español     |\n| 11 | 🇲🇽   |  `es-mx`   | Mexican Spanish      | Español     |\n| 12 | 🇮🇷   |  `fa`      | Farsi                |      فارسی  |\n| 13 | 🇫🇮   |  `fi`      | Finnish              | Suomi       |\n| 14 | 🇫🇷   |  `fr`      | French               | Français    |\n| 15 | 🇭🇺   |  `hu`      | Hungarian            | Magyar      |\n| 16 | 🇮🇸   |  `is`      | Icelandic            | Íslenska    |\n| 17 | 🇮🇹   |  `it`      | Italian              | Italiano    |\n| 18 | 🇯🇵   |  `ja`      | Japanese             | 日本語       |\n| 19 | 🇰🇷   |  `ko`      | Korean               | 한국어       |\n| 20 | 🇳🇱   |  `nl`      | Dutch                | Nederlands  |\n| 21 | 🇧🇪   |  `nl-be`   | Belgium Dutch        | Nederlands  |\n| 22 | 🇳🇴   |  `no`      | Norwegian            | Norsk       |\n| 23 | 🇵🇱   |  `pl`      | Polish               | Polski      |\n| 24 | 🇵🇹   |  `pt`      | Portuguese           | Português   |\n| 25 | 🇧🇷   |  `pt-br`   | Brazilian Portuguese | Português Brasileiro |\n| 26 | 🇷🇺   |  `ru`      | Russian              | Русский     |\n| 27 | 🇸🇪   |  `sv`      | Swedish              | Svenska     |\n| 28 | 🇹🇷   |  `tr`      | Turkish              | Türkçe      |\n| 29 | 🇺🇦   |  `uk`      | Ukrainian            | Український |\n| 30 | 🇨🇳   |  `zh`      | Chinese              | 汉语         |\n\n\nUsing locales:\n```javascript\nimport { Personal } from 'node-elizabeth';\n\nconst en = new Personal();\nconst de = new Personal({ locale: 'de' });\n\nen.fullName();\n// Inell Britt\nde.fullName();\n//Sabrina Gutermuth\n```\n\nPort limitations\n================\nDue to JavaScript limitations there's specific method signatures -\nall methods take `opts` object as their single argument.\nAlso first release don't include all the providers,\ncustom providers and decorators from original library.\n\nRunning tests\n=============\n`npm run test`\n\nUpcoming\n========\n* `Generic` provider from original library\n* Custom providers\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-pro%2Fnode-elizabeth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-pro%2Fnode-elizabeth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-pro%2Fnode-elizabeth/lists"}