RimuTec.Faker
0.4.0
See the version list below for details.
dotnet add package RimuTec.Faker --version 0.4.0
NuGet\Install-Package RimuTec.Faker -Version 0.4.0
<PackageReference Include="RimuTec.Faker" Version="0.4.0" />
<PackageVersion Include="RimuTec.Faker" Version="0.4.0" />
<PackageReference Include="RimuTec.Faker" />
paket add RimuTec.Faker --version 0.4.0
#r "nuget: RimuTec.Faker, 0.4.0"
#addin nuget:?package=RimuTec.Faker&version=0.4.0
#tool nuget:?package=RimuTec.Faker&version=0.4.0
Faker
A C# port of the Ruby Faker gem https://github.com/stympy/faker
Available Fake Data Generators
Job
- KeySkill()
- Title()
Lorem
- Words(int count)
- GetFirstWord()
- Sentence(int minWordCount)
- Sentences(int sentenceCount)
- Paragraph(int minSentenceCount)
- Paragraphs(int paragraphCount)
Name
- FullName() (equivalent to Ruby's Faker::Name.name)
- NameWithMiddle()
- FirstName()
- MiddleName()
- LastName()
- Prefix()
- Suffix()
- Initials(int characterCount)
PhoneNumber
- CellPhone()
RandomNumber
- ResetSeed(int seed)
- Next()
- Next(int maxValue)
- Next(int minValue, int maxValue)
Usage
Installation
This library is available as NuGet package at https://www.nuget.org/packages/RimuTec.Faker
The source code and the library are available under MIT license. This means you can use this libary and/or the source for free in your own projects, including closed-source and commercial projects. Terms and conditions are as per the MIT license in this project.
Generating Fake Data
- Install NuGet package. See https://www.nuget.org/packages/RimuTec.Faker for instructions
- Add
using RimuTec.Faker;
at the beginning of your C# source file (or the equivalent for your preferred .NET language) - Generate fake data, e.g.
var firstName = Name.NameWithMiddle();
In case of name clashes with other classes in your code base, use one of the following techniques in C# source files:
- use fully qualify names, e.g.
var firstName = RimuTec.Faker.Name.NameWithMiddle();
. Use this if there are only a couple of occurances. - add
using NameFaker = RimuTec.Faker.Name;
at the beginning of the file and thenvar firstName = NameFaker.NameWithMiddle();
. Use this option if you have many usages within the source file.
Release Notes
Release notes are available at https://github.com/RimuTec/Faker/blob/master/releasenotes.md
Credits
The project uses some portions of the source code of https://github.com/slashdotdash/faker-cs under a MIT license.
This project also uses the yaml files of the Ruby Faker gem from https://github.com/stympy/faker under a MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- Microsoft.Net.Compilers (>= 2.8.2)
- YamlDotNet (>= 4.3.2)
-
.NETStandard 2.0
- Microsoft.Net.Compilers (>= 2.8.2)
- YamlDotNet (>= 4.3.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
2.1.0 | 16,673 | 11/8/2023 |
2.0.0 | 2,894 | 9/24/2023 |
1.12.0 | 485 | 9/24/2023 |
1.11.0 | 30,965 | 12/30/2021 |
1.10.0 | 1,374 | 1/7/2021 |
1.9.0 | 1,180 | 12/19/2020 |
1.8.0 | 973 | 12/18/2020 |
1.7.0 | 902 | 12/13/2020 |
1.6.0 | 1,016 | 12/5/2020 |
1.5.0 | 1,098 | 5/17/2020 |
1.4.0 | 1,117 | 4/5/2020 |
1.3.0 | 1,031 | 3/28/2020 |
1.2.0 | 1,094 | 3/22/2020 |
1.1.0 | 1,051 | 3/22/2020 |
1.0.0 | 1,015 | 2/6/2020 |
0.44.0 | 1,043 | 2/6/2020 |
0.43.0 | 1,130 | 1/19/2020 |
0.42.0 | 1,060 | 1/19/2020 |
0.41.0 | 1,063 | 1/19/2020 |
0.40.0 | 2,178 | 8/5/2018 |
0.39.0 | 1,442 | 7/29/2018 |
0.38.0 | 1,419 | 7/27/2018 |
0.37.0 | 1,385 | 7/26/2018 |
0.36.0 | 1,430 | 7/25/2018 |
0.35.0 | 1,400 | 7/24/2018 |
0.34.0 | 1,378 | 7/23/2018 |
0.33.0 | 1,416 | 7/22/2018 |
0.32.0 | 1,445 | 7/17/2018 |
0.31.0 | 1,577 | 7/17/2018 |
0.30.0 | 1,622 | 7/15/2018 |
0.29.0 | 1,566 | 7/14/2018 |
0.28.0 | 1,624 | 7/13/2018 |
0.27.0 | 1,588 | 7/12/2018 |
0.26.0 | 1,627 | 7/11/2018 |
0.25.0 | 1,567 | 7/10/2018 |
0.24.0 | 1,575 | 7/9/2018 |
0.23.0 | 1,646 | 7/8/2018 |
0.22.0 | 1,375 | 7/7/2018 |
0.21.0 | 1,550 | 7/6/2018 |
0.20.0 | 1,546 | 7/5/2018 |
0.19.0 | 1,555 | 7/4/2018 |
0.18.0 | 1,557 | 7/4/2018 |
0.17.0 | 1,588 | 7/2/2018 |
0.16.0 | 1,639 | 7/1/2018 |
0.15.0 | 1,653 | 6/30/2018 |
0.14.0 | 1,503 | 6/29/2018 |
0.13.0 | 1,486 | 6/28/2018 |
0.12.0 | 1,613 | 6/27/2018 |
0.11.0 | 1,555 | 6/26/2018 |
0.10.0 | 1,545 | 6/25/2018 |
0.9.0 | 1,574 | 6/24/2018 |
0.8.0 | 1,616 | 6/23/2018 |
0.7.0 | 1,617 | 6/22/2018 |
0.6.0 | 1,740 | 6/21/2018 |
0.5.0 | 1,600 | 6/20/2018 |
0.4.0 | 1,536 | 6/20/2018 |
0.3.0 | 1,569 | 6/19/2018 |
0.2.0 | 1,618 | 6/19/2018 |
0.1.0 | 1,577 | 6/18/2018 |
Relase notes are available at https://github.com/RimuTec/Faker/blob/master/releasenotes.md