Install the Taylor Swift Library via npm:
npm install taylor-swift
Start using the Taylor Swift Library in your Node.js projects:
const { song, album, quote } = require("taylor-swift");
The Taylor Swift Library provides functions for interacting with Taylor Swift's music and related information:
Funtcion | Description |
---|---|
song.random() |
Returns a random Taylor Swift song. |
song.filterByAlbum(albumName) |
Returns songs released by Taylor Swift in a specific album. |
song.all() |
Returns all songs by Taylor Swift. |
song.get(songName) |
Returns a Taylor Swift song by its name. |
Funtcion | Description |
---|---|
album.random() |
Returns a randomly selected Taylor Swift album. |
album.all() |
Returns all Taylor Swift albums. |
album.get(albumName) |
Returns a specific Taylor Swift album by name. |
album.filterByYear(year) |
Returns albums released by Taylor Swift in a given year. |
Funtcion | Description |
---|---|
quote.random() |
Returns a randomly selected Taylor Swift quote. |
quote.filterBySong(songName) |
Returns quotes from a Taylor Swift song by its name. |
quote.filterByAlbum(albumName) |
Returns quotes from a Taylor Swift album by its name. |
const randomSong = song.random();
console.log(randomSong);
const album2008 = album.filterByYear(2008);
console.log(album2008);
Maintained by Lakshay Kamat, inspired by the work of Taylor Swift and her fans worldwide.