1.0.8 • Published 2 years ago

game-deals v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Game Deals

A public repository that can be installed using NPM for NodeJS applications. Using just 1 simple function will call the API of gamerpower.com and output all data.

Installation

Install via NPM:

  npm i game-deals@latest

Usage/Examples

const gamedeals = require("game-deals");

gamedeals.getGameDeals(function (response) {
  console.log(response); // logs all response

  console.log(response[0].title) // logs title of first deal
});

Config

For further adjustment there is a config file that will be used to store the static URL's to the API.

giveawayURL - API call url

Object values

Use example below to get the title of the first deal.

response[0].title

.title - Title

.worth - What the price was

gamedals.thumbnail: - Thumbnail URL

.image - Image URL

.description - A description of the game

.instructions - Claim instructions

.open_giveaway_url - URL to claim the deal

.published_date - Published date

.type - What type of deal

.platforms - PC/PS4/Steam/Epic games etc

.end_date - End date if available

Authors

Data source

This package uses the data source from https://www.gamerpower.com

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago