All Projects → pabrrs → TFaker

pabrrs / TFaker

Licence: MIT license
🔮 TFaker is a data generator inspired by https://github.com/fzaninotto/Faker and many others.

Programming Languages

pascal
1382 projects

Labels

Projects that are alternatives of or similar to TFaker

mockingbird
🐦 Decorator Powered TypeScript Library for Creating Mocks
Stars: ✭ 70 (+204.35%)
Mutual labels:  faker
apollobank
A full stack GraphQL banking application using React, Node & TypeScript.
Stars: ✭ 203 (+782.61%)
Mutual labels:  faker
faker
Generate massive amounts of fake data in the browser and node.js
Stars: ✭ 6,940 (+30073.91%)
Mutual labels:  faker
ImNotSpider
浏览器User Agent生成器
Stars: ✭ 17 (-26.09%)
Mutual labels:  faker
swagger-faker
Generate mocker services automatically through Swagger or OpenAPI.
Stars: ✭ 26 (+13.04%)
Mutual labels:  faker
bypass
↪️ Bypass for PHP creates a custom HTTP Server to return predefined responses to client requests. Useful for tests with Pest PHP or PHPUnit.
Stars: ✭ 98 (+326.09%)
Mutual labels:  faker
CRC-manipulator
Change CRC checksums of your files.
Stars: ✭ 73 (+217.39%)
Mutual labels:  faker
Mockaco
🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting
Stars: ✭ 213 (+826.09%)
Mutual labels:  faker
FakerDotNet
A .NET port of the Ruby faker gem
Stars: ✭ 15 (-34.78%)
Mutual labels:  faker
miz
🎯 Generate fake data, Just like a person.
Stars: ✭ 24 (+4.35%)
Mutual labels:  faker
fake-numbers
Generate fake, valid numbers. Check if a number is valid. Support a lot of different numbers: Credit card, EAN, ISBN, RTN, VIN, etc.
Stars: ✭ 51 (+121.74%)
Mutual labels:  faker
faker
Random fake data and struct generator for Go.
Stars: ✭ 67 (+191.3%)
Mutual labels:  faker
mkjson
A commandline tool to generate static or random JSON records
Stars: ✭ 16 (-30.43%)
Mutual labels:  faker
randomdata
TYPO3 extensions to generate new random data or replace existing data with random data
Stars: ✭ 14 (-39.13%)
Mutual labels:  faker
test-util
👓 Provides utilities for tests.
Stars: ✭ 15 (-34.78%)
Mutual labels:  faker
jRand
A Java library to generate random data for all sorts of things. Java random data faker
Stars: ✭ 27 (+17.39%)
Mutual labels:  faker
jedi-faker
Faker extension for Star Wars junkie
Stars: ✭ 15 (-34.78%)
Mutual labels:  faker
faker
A set of javascript packages that generates fake data for you.
Stars: ✭ 33 (+43.48%)
Mutual labels:  faker
random
Random data generator AKA faker
Stars: ✭ 14 (-39.13%)
Mutual labels:  faker
faker-schema
Generate fake data using joke2k's faker and your own schema
Stars: ✭ 91 (+295.65%)
Mutual labels:  faker

TFaker

🔮 TFaker is a fake data generator for Delphi/Pascal projects, inspired by fzaninotto/Faker and many others, because of test enhancements and time saving.

Feel free to contribute with your PR. 👽

Usage

First, you will need to download the file Faker.pas. Then, add on Library Path of your Delphi, by going at Tools > Options > Environment Options > Delphi Options > Library > Library Path.

Avaliable Methods

  lorem := TFaker.loremIpsum();
  // "Lorem ipsum dolor sit amet [...]"

  firstName := TFaker.firstName();
  // returns an ordinary first name, e.g 'Bill', 'Adam', 'Paul'

  lastName := TFaker.lastName();
  // returns an ordinary last name, e.g 'Clark', 'Arin', 'Graham'
  
  fullName := TFaker.fullName();
  // returns an combination of TFaker.firstName and TFaker.lastName
  // e.g 'Bill Clark','Adam Arian', 'Paul Graham'
  
  userName := TFaker.userName();
  // returns an username created by using TFaker.fullName() as name generator
  // e.g 'bill_clark', 'adam2345arian', 'paul.graham'
  
  email := TFaker.email();
  customEmail := TFaker.email('my.custom.domain.io');
  // returns an random email generated by using TFaker.fullName() and some of 100 most used domains
  // or your given custom domain
  
  password := TFaker.password();
  // returns an completely random string with numbers and chars, with upper and lower case
  
  birthDate := TFaker.birthDate();
  // returns an birthdate whose age is between 0 and 100 years old
  
  thing := TFaker.thing();
  // returns an completely random thing

  otan := TFaker.otan();
  x_otan := TFaker.OTAN_ALPHABET[23]; // 23 index of 'X' ('Xray')
  // returns an random otan Phonetic Alphabet member 
  // e.g 'Alpha', 'Quebec', 'Foxtrot'
  // or you can use directly indexing for otan alphabet, 
  // that goes from 0 (A - Alpha) to 25 (Z - Zulu)

  randomWord := TFaker.word();
  // random word

  text := TFaker.text();
  text := TFaker.text(200);
  // random text using TFaker.words() combination,
  // or a text with defined number of words

  randomFromList := TFaker.randVal(['will', 'shall', 'not', 'bug'])
  // returns an random item from list

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].