Bogus 7.1.2-beta-1
A simple and sane data generator for populating objects that supports different locales. A delightful port of the famed faker.js and inspired by FluentValidation. Use it to create and load databases and UIs with mockup data. Get started by using Faker class or a DataSet directly.
No packages depend on Bogus.
v7.1.2
- Roll-up Release for .NET Framework since last non-beta release.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
v7.1.2-beta-1
- Clamp Randomizer maximum value to int.MaxValue.
v7.1.1
- Roll-up Release for .NET Framework since last non-beta release.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
v7.1.1-beta-1
- Locale update
- Date.Recent(0) generates random times for current date between midnight and now.
- New
Systemdata set for generating fake file names and mime-types. - Added
Date.Timespanfor random timespan values. - Added
System.Semverfor random semantic versions. - Added
System.Versionfor random System.Version objects. - Added
Internet.ExampleEmailfor simple @example.com email generation. - Added
Finance.BitcoinAddressfor random bitcoin addresses. - BREAKING: Fake "seeded" data generated by Bogus may be different from previous versions.
- WARN: Address.City may have changed in some random seeds
v6.1.1
- Roll-up Release for .NET Framework since last non-beta release.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
v6.1.1-beta-1
- Fixed index out of bounds bug in faker.Random.Word().
- Commerce.Department output may have changed as a result of this fix.
v5.1.1-beta-3
- Removed RuleFor(x = x.Prop, constantValue), was confusing the API.
- Added 0-arity RuleFor(x = x.Prop, () => someValue)
v5.1.1-beta-2
- Make f.UniqueIndex as int for convenience.
- Use generic RuleFor(x = x.Prop, constantValue).
v5.1.1-beta-1
- New RuleFor(x = x.Prop, constantValue)
- Support for Hashids.net: RuleFor(x = x.Id, f = f.Hashids.Encode())
- New f.UniqueIndex, useful for composing property values that require uniqueness.
v5.0.1
- Roll-up Release for .NET Framework since v4.0.1.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
v5.0.1-beta-2
- JvanderStad PR15: Lazy load Person. Avoids extra Seed.Next calls that may interfere with seeded content.
- JvanderStad PR16: Better address generation. Respects locale address formats.
- Added "dotnet5.4" moniker support.
- BREAKING: Fake "seeded" data generated by Bogus may be different from previous versions.
v4.0.1
- Roll-up Release for .NET Framework since v3.0.6.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
v4.0.1-beta-1
- Bogus - Feature parity with faker.js.
- System module added. Generate random file names and extensions.
- Randomizer - Added Uuid().
- Locales Updated: en_GB, sv, sk, de_CH, en.
- Locales Added: id_ID, el, lv.
- Prevent apostrophes in return value of Internet.DomainWords
- Added more parameters for Image data set.
- BREAKING API METHODS:
- Lorem - Better API methods: Seeded tests based on "content" will fail due to upgrade.
v3.0.6
- Roll-up Release for .NET Framework since v3.0.5.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
v3.0.6-beta-1
- Issue #13: Fixed StrictMode to exclude private fields.
- New Feature: Ignore property or field in StrictMode: Faker[Order].Ignore(o => o.OrderId).
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
v3.0.5
- Roll-up Release for .NET Framework since v3.0.4.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
v3.0.5-beta-4
- Issue #13: StrictMode() now ignores read-only properties.
- Newtonsoft.Json v8 compatibility.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
v3.0.5-beta-3
- Issue #12: Make Bogus thread-safe on Generate() and DataSets. Avoids threading issues in test runners.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
v3.0.5-beta-2
- CoreCLR support (CoreCLR users please continue using latest beta release until CoreCLR is RTM.).
v3.0.4
- Issue 10: Make Bogus work with fields also, not just properties. Fixes LINQPad issues.
v3.0.3
- PR 9: quantumplation - Fixed typo in Lorem.Sentance() -> Lorem.Sentence()
v3.0.2
- Generate US: SSN - Social Security Numbers.
- Generate Canada: SIN - Social Insurance Numbers.
- Generate Brazil: Cadastro de Pessoas Fisicas - CPF Numbers.
- Generate Finland: Henkilotunnus - Person ID numbers
- Generate Denmark: Det Centrale Personregister - Person ID numbers.
- Allow exclude values on Randomizer.Enum.
- Randomizer.Replace accepts '*' replace with letter or digit.
- Added Lorem.Letter(num).
- Can switch locale on Name: f.Name["en"].LastName()
v3.0.1
- Added debug symbols to symbolsource.org.
- PR#6: Fixed lastname and empty list exception -salixzs
- Switch to semantic versioning at par with FakerJS.
v3.0.0.4
- Adding generators: Date.Month(), Date.Weekday()
- Sentences using lexically correct "A foo bar."
- Added Spanish Mexico (es_MX) locale.
v3.0.0.3
- Issue #2: Use latest Newtonsoft.Json 7.0.0.0 -Mpdreamz
v3.0.0.2
- Includes Ireland (English) locale.
v3.0.0.1
- Migrated to new FakerJS datafile format. Build system uses gulp file to directly import FakerJS locales.
- Faker.Parse() can now tokenize and replace handlebar formats.
- Added Faker.Hacker and Faker.Company properties.
- Added Custom separator on Lorem.Paragraph.
- Added Canada (French) (fr_CA) locale.
- Added Ukrainian (uk) locale.
- Added Ireland (en_IE) locale.
- Added Internet.Mac for mac addresses.
- Support for Canadian post/zip codes.
- Exposed Name.JobTitle, Name.JobDescriptor, Name.JobArea, Name.JobType
- Exposed Address.CountryCode
- Replace symbols in domain words so it generates output for all locales
- Support for gender names, but only for locales that support it. Russian('ru') but not English('en').
- Corrected abbreviation for Yukon to reflect its official abbreviation of "YT".
v2.1.5.2:
- Fixed instantiating a Person in a non-US locale. -antongeorgiev
v2.1.5.1:
- Added Georgian, Turkish, and Chinese (Taiwan) locales.
- Added Name.JobTitle()
- Added Internet.Url() and Internet.Protocol().
- Sync'd up with faker.js v2.1.5.
v2.1.4.2:
- Fixed bug in Faker.Person and Faker[T] that generates new person context after every new object.
- Added support for .FinishWith() for post-processing that runs after all rules but before returning new instance.
- Added Newtonsoft.Json as NuGet dependency.
v2.1.4.1:
- Minor changes, mostly XML doc update and Person moved from DataSet to Bogus namespace.
v2.1.4.0:
- Initial port from faker.js 2.1.4.
.NET Framework 4.0
- Newtonsoft.Json (>= 8.0.2)
DNX 4.5.1
- Newtonsoft.Json (>= 8.0.2)
DNXCore 5.0
- Newtonsoft.Json (>= 8.0.2)
- System.Text.Encoding (>= 4.0.11-beta-23516)
- System.Dynamic.Runtime (>= 4.0.11-beta-23516)
- System.IO (>= 4.0.11-beta-23516)
- System.ComponentModel (>= 4.0.1-beta-23516)
- System.Reflection.Extensions (>= 4.0.1-beta-23516)
- System.Reflection.TypeExtensions (>= 4.0.1-beta-23409)
- System.Text.RegularExpressions (>= 4.0.11-beta-23516)
.NETPlatform 5.4
- Newtonsoft.Json (>= 8.0.2)
- System.Text.Encoding (>= 4.0.11-beta-23516)
- System.Dynamic.Runtime (>= 4.0.11-beta-23516)
- System.IO (>= 4.0.11-beta-23516)
- System.ComponentModel (>= 4.0.1-beta-23516)
- System.Reflection.Extensions (>= 4.0.1-beta-23516)
- System.Reflection.TypeExtensions (>= 4.0.1-beta-23409)
- System.Text.RegularExpressions (>= 4.0.11-beta-23516)
- System.Linq (>= 4.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 35.6.3 | 3 | 09/08/2025 |
| 35.6.2 | 2 | 09/16/2025 |
| 35.6.1 | 2 | 09/16/2025 |
| 35.6.0 | 2 | 09/16/2025 |
| 35.5.1 | 2 | 09/16/2025 |
| 35.5.0 | 2 | 09/16/2025 |
| 35.4.1 | 2 | 09/16/2025 |
| 35.4.0 | 2 | 09/16/2025 |
| 35.3.2 | 2 | 09/16/2025 |
| 35.3.1 | 2 | 09/16/2025 |
| 35.3.0 | 2 | 09/16/2025 |
| 35.2.0 | 2 | 09/16/2025 |
| 35.0.1 | 2 | 09/16/2025 |
| 34.0.2 | 2 | 09/16/2025 |
| 34.0.1 | 2 | 09/16/2025 |
| 33.1.1 | 2 | 09/16/2025 |
| 33.0.2 | 2 | 09/16/2025 |
| 33.0.1 | 2 | 09/16/2025 |
| 32.1.1 | 2 | 09/16/2025 |
| 32.0.2 | 2 | 09/16/2025 |
| 32.0.1 | 2 | 09/16/2025 |
| 31.0.3 | 2 | 09/16/2025 |
| 30.0.4 | 2 | 09/16/2025 |
| 30.0.1-beta-4 | 2 | 09/18/2025 |
| 30.0.1-beta-3 | 2 | 09/18/2025 |
| 30.0.1-beta-2 | 2 | 09/18/2025 |
| 30.0.1-beta-1 | 2 | 09/18/2025 |
| 29.0.2 | 2 | 09/16/2025 |
| 29.0.1 | 2 | 09/16/2025 |
| 28.4.4 | 2 | 09/16/2025 |
| 28.4.3 | 2 | 09/16/2025 |
| 28.4.2 | 2 | 09/16/2025 |
| 28.4.1 | 2 | 09/16/2025 |
| 28.3.2 | 2 | 09/16/2025 |
| 28.3.1 | 2 | 09/16/2025 |
| 28.2.1 | 2 | 09/16/2025 |
| 28.1.1 | 2 | 09/16/2025 |
| 28.0.3 | 2 | 09/16/2025 |
| 28.0.2 | 2 | 09/16/2025 |
| 28.0.1 | 2 | 09/16/2025 |
| 27.0.1 | 2 | 09/16/2025 |
| 26.0.2 | 2 | 09/16/2025 |
| 26.0.1 | 2 | 09/16/2025 |
| 25.0.4 | 2 | 09/16/2025 |
| 25.0.3 | 2 | 09/16/2025 |
| 25.0.2 | 2 | 09/16/2025 |
| 25.0.1 | 2 | 09/16/2025 |
| 24.3.1 | 2 | 09/16/2025 |
| 24.3.0 | 2 | 09/16/2025 |
| 24.2.0 | 2 | 09/16/2025 |
| 23.0.2 | 2 | 09/16/2025 |
| 22.3.2 | 2 | 09/16/2025 |
| 22.3.1 | 2 | 09/16/2025 |
| 22.2.1 | 2 | 09/16/2025 |
| 22.1.4 | 2 | 09/16/2025 |
| 22.1.3 | 2 | 09/13/2025 |
| 22.1.2 | 2 | 09/16/2025 |
| 22.1.1 | 2 | 09/16/2025 |
| 22.0.9 | 2 | 09/16/2025 |
| 22.0.8 | 2 | 09/16/2025 |
| 22.0.7 | 2 | 09/16/2025 |
| 22.0.6 | 2 | 09/16/2025 |
| 22.0.5 | 2 | 09/16/2025 |
| 22.0.3 | 2 | 09/16/2025 |
| 22.0.2 | 2 | 09/16/2025 |
| 22.0.1 | 2 | 09/16/2025 |
| 21.0.5 | 2 | 09/16/2025 |
| 21.0.4 | 2 | 09/16/2025 |
| 21.0.2 | 2 | 09/16/2025 |
| 20.0.2 | 2 | 09/16/2025 |
| 20.0.1 | 2 | 09/16/2025 |
| 19.0.2 | 2 | 09/16/2025 |
| 18.0.2 | 2 | 09/16/2025 |
| 18.0.1 | 2 | 09/16/2025 |
| 17.0.1 | 2 | 09/16/2025 |
| 16.0.3 | 2 | 09/16/2025 |
| 16.0.2 | 2 | 09/16/2025 |
| 15.0.7 | 2 | 09/16/2025 |
| 15.0.6 | 2 | 09/16/2025 |
| 15.0.5 | 2 | 09/16/2025 |
| 15.0.3 | 2 | 09/16/2025 |
| 15.0.1 | 3 | 09/16/2025 |
| 12.0.1 | 2 | 09/16/2025 |
| 11.0.5 | 2 | 09/16/2025 |
| 11.0.4 | 2 | 09/16/2025 |
| 11.0.3 | 2 | 09/16/2025 |
| 11.0.2 | 2 | 09/16/2025 |
| 11.0.1 | 2 | 09/16/2025 |
| 10.0.1 | 2 | 09/16/2025 |
| 9.0.2 | 2 | 09/18/2025 |
| 9.0.1 | 2 | 09/18/2025 |
| 8.0.4 | 2 | 09/18/2025 |
| 8.0.3 | 2 | 09/18/2025 |
| 8.0.2 | 2 | 09/18/2025 |
| 8.0.1 | 2 | 09/18/2025 |
| 8.0.1-beta-1 | 2 | 09/19/2025 |
| 7.1.7 | 2 | 09/18/2025 |
| 7.1.6 | 2 | 09/18/2025 |
| 7.1.5 | 2 | 09/18/2025 |
| 7.1.4 | 2 | 09/18/2025 |
| 7.1.3 | 2 | 09/18/2025 |
| 7.1.3-beta-1 | 2 | 09/19/2025 |
| 7.1.2 | 2 | 09/18/2025 |
| 7.1.2-beta-1 | 2 | 09/19/2025 |
| 7.1.1 | 2 | 09/18/2025 |
| 7.1.1-beta-1 | 2 | 09/19/2025 |
| 6.1.1 | 2 | 09/18/2025 |
| 6.1.1-beta-1 | 2 | 09/19/2025 |
| 5.1.1-beta-3 | 2 | 09/19/2025 |
| 5.1.1-beta-2 | 2 | 09/19/2025 |
| 5.1.1-beta-1 | 2 | 09/19/2025 |
| 5.0.1 | 2 | 09/18/2025 |
| 5.0.1-beta-2 | 2 | 09/19/2025 |
| 4.0.1 | 2 | 09/18/2025 |
| 4.0.1-beta-1 | 2 | 09/19/2025 |
| 3.0.6 | 2 | 09/18/2025 |
| 3.0.6-beta-1 | 2 | 09/19/2025 |
| 3.0.5 | 2 | 09/18/2025 |
| 3.0.5-beta-4 | 2 | 09/19/2025 |
| 3.0.5-beta-3 | 2 | 09/19/2025 |
| 3.0.5-beta-2 | 2 | 09/19/2025 |
| 3.0.4 | 2 | 09/18/2025 |
| 3.0.3 | 2 | 09/18/2025 |
| 3.0.2 | 2 | 09/18/2025 |
| 3.0.1 | 2 | 09/18/2025 |
| 3.0.0.3 | 2 | 09/18/2025 |
| 2.1.4.1 | 2 | 09/18/2025 |
| 2.1.4 | 2 | 09/18/2025 |