Music
Module to generate music related entries.
Overview
Generate random music content.
For a random album name, use album()
.
For a random artist, use artist()
.
For a random genre, use genre()
.
For a random song name, songName()
.
All data types may be localized.
album
Returns a random album name.
Available since v9.0.0
Returns: string
ts
function album(): string;
Examples
ts
faker.music.album() // '1989'
Source
artist
Returns a random artist name.
Available since v9.0.0
Returns: string
ts
function artist(): string;
Examples
ts
faker.music.artist() // 'The Beatles'
Source
genre
Returns a random music genre.
Available since v5.2.0
Returns: string
ts
function genre(): string;
Examples
ts
faker.music.genre() // 'Reggae'
Source
songName
Returns a random song name.
Available since v7.1.0
Returns: string
ts
function songName(): string;
Examples
ts
faker.music.songName() // 'White Christmas'