1.3.2 • Published 4 years ago

wimpy.kid_api v1.3.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Only Usable With ESM.

Get information on wimpy kid books easily!

There are 2 sections of this package:

  • Wimpy Kid
  • Rowley Jefferson

Get Started:

import wimpyAPI from "wimpy.kid_api"; // importing the package.
const Data = new wimpyAPI() /** Creating the class
* when creating the class, remember, the class you define has to be the same as the variable in which you imported the package
**/
// see below, for getting the author of the books:
Data.getAuthor(); // returns "Jeffrey Patrick Kinney"

Common Methods:

  • Data.getEverything() : Gets every little piece of information you need on the books. Returns Object
  • Data.getAuthor() : Gets the author of the books. Returns String

To get all the arguments which you can enter in methods, use Data.getList(bookType) bookType means either "wimpy kid books" or "rowley jefferson books". for wimpy kid books, enter 0 in the bookType argument, whereas, for rowley jefferson books, enter 1 in the bookType argument.

Everything Below is the examples and methods for acquiring "wimpy kid" books information:

Method(s):

  • Data.getWimpyKidBook(arg) : Returns the book information. Returns Object

arg : the argument which you enter.

Example:

// continuing from the startup code given above:
console.log(Data.getWimpyKidBook(1)) // should return:
/*
{
        "name": "Diary of a wimpy kid- Rodrick Rules",
        "description": "Remember how I said that if some jerk caught me carrying a book with ‘diary’ on the cover they were gonna get the wrong idea?\nWell, that’s exactly what happened today.\n\nNow that Rodrick knows I have another journal, I better remember to keep this one locked up. Rodrick actually got ahold of my last journal . . . But don’t even get me started on THAT story. Even without my Rodrick problems, my summer was pretty lousy.\n\nWhatever you do, don’t ask me how I spent my summer vacation because I definitely don’t want to talk about it.",
        "releasedAt": "February 1, 2008",
        "color": "Blue",
        "pages": "217",
        "serial_number": 2,
        "previousBook": "Diary of a wimpy kid",
        "nextBook": "Diary of a wimpy kid- The Last Straw"
    }
*/

Everything below are the examples and methods for acquiring "Rowley Jefferson" books information:

Method(s):

  • Data.getRowleyJeffersonBook(arg) : Returns the book information. Returns Object arg : the argument which you enter.

Example:

// continuing from the startup code given above:
console.log(Data.getRowleyJeffersonBook(1)) // should return:
/*
{
      "name": "Rowley Jefferson's Awesome Friendly Adventure",
      "releasedAt": "August 4, 2020, April 7, 2020 (originally)",
      "color": "Gold, Bright Orange",
      "pages": "217",
      "previousBook": "Diary of an Awesome Friendly Kid- Rowley Jefferson's Journal",
      "nextBook": "Rowley Jefferson's Awesome Friendly Spooky Stories",
      "serial_number": 2
    }
*/

if you have any questions/doubts or errors, join the Discord if you want the CJS version of this package, go to this package

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.9

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago