Interface Celebrity

Generator to generate celebrities.

interface Celebrity {
    celebrityActor(): string;
    celebrityBusiness(): string;
    celebritySport(): string;
}

Methods

  • Famous person known for acting in films, television, or theater.

    Returns string

    a random celebrity actor

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.celebrity.celebrityActor())
    }

    Output (formatted as JSON value)

    "Ben Affleck"
    
  • High-profile individual known for significant achievements in business or entrepreneurship.

    Returns string

    a random celebrity business

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.celebrity.celebrityBusiness())
    }

    Output (formatted as JSON value)

    "Larry Ellison"
    
  • Famous athlete known for achievements in a particular sport.

    Returns string

    a random celebrity sport

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.celebrity.celebritySport())
    }

    Output (formatted as JSON value)

    "Greg Lemond"