Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 1.16 KB

README.md

File metadata and controls

53 lines (44 loc) · 1.16 KB

German-Mocker

A small mocking tool from which you can get random names of people and cities in Germany.

License

MIT

Installation

$ meteor add phosphoros:german-mocker

API

Basics

Currently the functions are simply:

  GermanMocker().getCityByName("Hamburg");
  /*
    {
      city:"Hamburg",
      postcode:"20095",
      prefix:"040",
      state:"Hamburg"
    }
  */
  GermanMocker().getRandomCity(); // conforms getCityByName()
  GermanMocker().getRandomForename(); // eg. Frank
  GermanMocker().getRandomSurname(); // eg. Schmidt
  GermanMocker().getRandomUserName(); // eg. pmeinert
  GermanMocker().getRandomName(); // eg. Herbert Niemann
  GermanMocker().getRandomNameWithGender(); // eg. Frau Claudia Nießen
  GermanMocker().getRandomPhoneNumber(); // eg. 774931
  GermanMocker().getRandomAddress();
  /*
    eg.:
    {
      gender: "Herr",
      forename: "Heinzdieter",
      surname: "Schick",
      city: "Icking",
      postcode: "82057",
      prefix: "08178",
      phone: "4800786"
    }
  */

The function getRandomUserName() creates a lowercase username with the first character of a random forename and the subsequent surname.