Interface Movie

Generator to generate movie related entries.

interface Movie {
    movie(): Record<string, string>;
    movieGenre(): string;
    movieName(): string;
}

Methods

  • A story told through moving pictures and sound.

    Returns Record<string, string>

    a random movie

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

    let faker = new Faker(11)

    export default function () {
    console.log(faker.movie.movie())
    }

    Output (formatted as JSON value)

    {"Name":"Sherlock Jr.","Genre":"Music"}
    
  • Category that classifies movies based on common themes, styles, and storytelling approaches.

    Returns string

    a random movie genre

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

    let faker = new Faker(11)

    export default function () {
    console.log(faker.movie.movieGenre())
    }

    Output (formatted as JSON value)

    "Film-Noir"
    
  • Title or name of a specific film used for identification and reference.

    Returns string

    a random movie name

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

    let faker = new Faker(11)

    export default function () {
    console.log(faker.movie.movieName())
    }

    Output (formatted as JSON value)

    "Sherlock Jr."