npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ayoub_boulbaz-sdk

v0.1.20

Published

This Lord of the Rings SDK is a software development kit that allows developers to easily fetch data about the **Lord of the Rings** movies and quotes.

Downloads

8

Readme

Ayoub Boulbaz's Lord of the Rings SDK!

This Lord of the Rings SDK is a software development kit that allows developers to easily fetch data about the Lord of the Rings movies and quotes.

Installation

To install the SDK, simply run:

npm install lord-of-the-rings-sdk

or:

  1. Clone the SDK repository to your local machine using git clone https://github.com/AyoubHolmes/ayoub_boulbaz-SDK.git.
  2. Add your own API Key in the src/constants.ts file.
  3. Install the required dependencies by running npm install.
  4. Once the dependencies are installed, you can start using the SDK in your own project

Usage

The SDK provides five main functionalities:

  1. Fetching all the movies.
  2. Fetching a single movie's information.
  3. Fetching a single movie's famous quotes.
  4. Fetching all the quotes in all the movies.
  5. Fetching a single quote's information.

1- Fetching all the movies.

To fetch all the Lord of the Rings movies, you can use the getMovies method. This method takes no parameter.

Here's an example of how to use the getMovies method:

import { LordOfTheRingSDK } from 'ayoub_boulbaz-sdk';

const  lordOfTheRingSDK = new  LordOfTheRingSDK();

lordOfTheRingSDK.movies.getMovies()
.then(movies => console.log(movies));

2- Fetching a single movie's information.

To fetch information about a single Lord of the Rings movie, you can use the getMovieById method. This method takes an parameter that specifies the movie's id in the database you want to retrieve information for.

Here's an example of how to use the getMovieById method:

import { LordOfTheRingSDK } from 'ayoub_boulbaz-sdk';

const  lordOfTheRingSDK = new  LordOfTheRingSDK();

lordOfTheRingSDK.movies.getMovieById()
.then(movie => console.log(movie));

3- Fetching a single movie's famous quotes.

To fetch all the famous quotes of a Lord of the Rings movie, you can use the getMovieQuotesById method. This method takes an parameter that specifies the movie's id in the database you want to retrieve its quotes.

Here's an example of how to use the getMovieQuotesById method:

import { LordOfTheRingSDK } from 'ayoub_boulbaz-sdk';

const  lordOfTheRingSDK = new  LordOfTheRingSDK();

lordOfTheRingSDK.movies.getMovieQuotesById()
.then(movies => console.log(movies));

4- Fetching all the quotes in all the movies.

To fetch all the famous quotes of the Lord of the Rings movies, you can use the getQuotes method. This method takes no paramters.

Here's an example of how to use the getQuotes method:

import { LordOfTheRingSDK } from 'ayoub_boulbaz-sdk';

const  lordOfTheRingSDK = new  LordOfTheRingSDK();

lordOfTheRingSDK.quotes.getQuotes()
.then(movies => console.log(movies));

5- Fetching a single quote's information.

To fetch information about a single Lord of the Rings quote, you can use the getQuoteById method. This method takes a parameter that specifies the quote id in the database you want to retrieve information for.

Here's an example of how to use the getQuoteById method:

import { LordOfTheRingSDK } from 'ayoub_boulbaz-sdk';

const  lordOfTheRingSDK = new  LordOfTheRingSDK();

lordOfTheRingSDK.quotes.getQuoteById()
.then(movies => console.log(movies));