taylor-swift
TypeScript icon, indicating that this package has built-in type declarations

3.3.1 • Public • Published

taylor-swift v3.3.0

Taylor Swift

Installation

Install the Taylor Swift Library via npm:

npm install taylor-swift

Usage

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:

Songs

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.

Albums

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.

Quote

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.

Example

Random Taylor Swift Song:

const randomSong = song.random();
console.log(randomSong);

Taylor Swift Album by Year:

const album2008 = album.filterByYear(2008);
console.log(album2008);

Credits

Maintained by Lakshay Kamat, inspired by the work of Taylor Swift and her fans worldwide.

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i taylor-swift

    Weekly Downloads

    9

    Version

    3.3.1

    License

    ISC

    Unpacked Size

    483 kB

    Total Files

    23

    Last publish

    Collaborators

    • lakshaykamat
    • ruchisingh-dev