1.2.1 • Published 4 years ago

@chill_coder.shaur31/wimpy.kid_api v1.2.1

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

This Package is only usable with ESM.

Get information on Wimpy Kid books easily!

All Methods are: wimpyKidData.getBook(arg) : Gets and returns information on a wimpy kid book. Returns Object wimpyKidData.getAllBooks() : Gets and returns information on all the wimpy kid books. Returns Object wimpyKidData.getList() : Returns the list of arguments you can give in the 'arg' argument in the above method. Returns Array

the parameter in the above method(s) arg is the argument which you enter. do wimpyKidData.getList() to get all the arguments which you can enter. wimpyKidData means the new class which you constructed from the package. See the below example for more information on doing this.

this package cannot be installed with powershell , as it shows some errors with packages whose name contain @ , most terminals/consoles support @ , but some don't.

example:

import wimpyAPI from "@chill_coder.shaur31/wimpy.kid_api";
const wimpyKidData = new wimpyAPI();
console.log(wimpyKidData.getBook(2)) /* will return the information for the book 'Diary of a wimpy kid: The Last Straw', it should look like this:
{
      "name":"Diary of a wimpy kid- The Last Straw",
      "description": "New Year’s Day\nYou know how you’re supposed to come up with a list of “resolutions” at the beginning of the year to try to make yourself a better person?\nWell, the problem is, it’s not easy for me to think of ways to improve myself, because I’m pretty much one of the best people I know.\n\nBut Greg’s dad has other ideas. He wants Greg to change his wimpy ways, toughen up and enlist in other ‘manly’ endeavours. And when he threatens to send Greg to military academy, Greg realizes he has to shape up . . . or get shipped out.",
      "releasedAt": "January 13, 2009",
      "color": "Green",
      "pages": "217",
      "serial_number": "3"
  }
  */
 // to get something specific, see below:
import wimpyAPI from "@chill_coder.shaur31/wimpy.kid_api";
const wimpyKidData = new wimpyAPI();
console.log(wimpyKidData.getBook(2).name)  // will log 'Diary of a wimpy kid- The Last Straw'

if you have any questions/doubts or errors, join the Discord

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.2.1

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago