Skip to content

Latest commit

 

History

History

travel

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

TravelFaker

Maven Central Sonatype Nexus (Snapshots)

Provides access to fake data generators within the Travel domain.

Usage

Documentation for kotlin-faker is available at serpro69.github.io/kotlin-faker/.

Downloading

Latest releases are always available on maven central.

With gradle

dependencies {
    implementation 'io.github.serpro69:kotlin-faker:$version'
    implementation 'io.github.serpro69:kotlin-faker-travel:$version'
}

With maven

<dependencies>
    <dependency>
        <groupId>io.github.serpro69</groupId>
        <artifactId>kotlin-faker</artifactId>
        <version>${version}</version>
    </dependency>
    <dependency>
        <groupId>io.github.serpro69</groupId>
        <artifactId>kotlin-faker-travel</artifactId>
        <version>${version}</version>
    </dependency>
</dependencies>

NB! An additional fake data provider like 'travel' requires the main kotlin-faker dependency to be on the classpath.

Generating data

// NB! the package you import if using multiple fakers
import io.github.serpro69.kfaker.travel.faker

val faker = faker { }

faker.airport.europeanUnion.iataCode()
faker.mountain.name()