Faker v10

website·Indexed 38 days ago

https://v10.fakerjs.dev/

Documentation for Faker v10, featuring a wide array of supported locales for generating localized mock data, including language-specific data and regional variations.

Tokens
142.1K
Snippets
1K
Records
1.1K
Agent score
57%

What's inside Faker

  1. Overview of the Company module

    The faker.company module is used to generate company-related entries. For related needs, use faker.commerce for products and commerce, or faker.finance for finance-related entries.
  2. Overview of the Finance module

    The faker.finance module provides utilities to generate mock data for finance and money-related entries, including random currency amounts, traditional bank account details (account numbers, BIC, IBAN), credit card information (numbers, CVV, issuers), and blockchain addresses (Bitcoin, Ethereum, Litecoin).
  3. Overview of Faker library capabilities

    Faker is a JavaScript library used to generate realistic fake data. It is commonly used for unit testing, performance testing, building demos, and developing front-end features when a backend is not yet available.
  4. Overview of Faker module types

    Faker organizes its data generation capabilities into three primary module categories:

    1. Basic Datatypes: Core types including datatype, date, number, and string.
    2. Topic Specific: Specialized modules for specific domains such as animal and food.
    3. Helpers: The helpers module provides utility methods for manipulating data generated by other Faker methods or custom data.
  5. Overview of the Faker Airline module

    The faker.airline module generates airline and airport related data based on International Air Transport Association (IATA) standards. Several methods in this module return objects rather than strings, allowing developers to access specific properties (e.g., faker.airline.airport().iataCode). For passenger-related data, use the faker.person module.
  6. Overview of the Faker library

    Faker is a library used to generate reasonable fake (mock) data for testing and development purposes. Originally implemented in Perl in 2004, it has been ported to many languages including Ruby, Python, Java, Clojure, PHP, and C#. The @faker-js/faker package is the JavaScript port.
  7. Overview of the faker.person module

    The faker.person module (formerly faker.name prior to v8.0.0) is used to generate personal information such as names, job titles, and profile details. It supports locale-specific name patterns and optional sex-based filtering ('male', 'female', or 'generic') for many of its methods.
  8. Overview of the Faker Lorem module

    The lorem module generates random dummy text and words using traditional faux-Latin (lorem ipsum). It provides a range of methods to generate content of increasing size: from single words and sentences to lines, paragraphs, and full blocks of text, as well as URL-friendly slugs.
  9. Overview of the Location module

    The faker.location module (which replaced faker.address in v8.0.0) generates random address and location data. All outputs are tied to the current locale. For common street addresses, use streetAddress(), city(), state(), and zipCode(). For geographic coordinates, use latitude(), longitude(), or nearbyGPSCoordinate().
  10. Overview of book data generation in Faker

    The faker.book module provides several methods for generating book-related entries. All values may be localized. For specific needs, use the following mappings:

    • Random title: faker.book.title()
    • Random existing author: faker.book.author()
    • Random non-existing author: faker.person.fullName()
    • Random genre: faker.book.genre()
    • Random series: faker.book.series()
    • Random publisher: faker.book.publisher()
    • Random format: faker.book.format()
    • Random ISBN: faker.commerce.isbn()
  11. Overview of the Location module

    The faker.location module provides methods to generate random addresses, geographic data, and location-based information. It replaces the faker.address module used prior to version 8.0.0. All generated data is tied to the current locale. For common street addresses, use a combination of streetAddress(), city(), state(), and zipCode().
  12. Overview of the Faker Location module

    The faker.location module (which replaced faker.address in v8.0.0) provides methods to generate random, locale-specific address and location data. Common tasks include generating street addresses, cities, states, zip codes, GPS coordinates, and country information.