Skip to content

cagrisungur/free-games-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This package designed for get free games from online stores. Also thanks to @Auropic , I was inspired while doing the project.

Techs

  • node.js - As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications
  • axios - Axios is a promise-based HTTP Client for node.js and the browser. It is isomorphic (= it can run in the browser and nodejs with the same codebase). On the server-side it uses the native node.js http module, while on the client (browser) it uses XMLHttpRequests.
  • typescript - Basically, it's a superset of JavaScript that adds new capabilities to the language. Most notable addition are static type definitions, something that is not present in plain JavaScript.

Includes

  • Epic Store

Future Updates

  • Steam
  • Ubisoft

Installation

npm i free-games-checker

Usage

import { getEpicGames } from "free-games-checker"

async function main() {
    const data = await getEpicGames('TR')

    console.log(data)
}

OR

var freeGamesChecker = require("free-games-checker")

console.log(await freeGamesChecker.getEpicGames('TR'))

Output

[
  {
    "id": "8d50972d297f448cb3718d6e8094327a",
    "title": "Sonic Mania",
    "description": "Sonic Mania",
    "mainImage": "https://cdn1.epicgames.com/45e7cf3c49054f2fb20b673d9b0ae69e/offer/EGS_SonicMania_Lab42_S6-510x680-b83646998d6a711b6997e076e091c015.jpg",
    "urlSlug": "amethystgeneralaudience"
  },
  {
    "id": "58a2b650955f4920876afe86dfb563c1",
    "title": "Horizon Chase Turbo",
    "description": "Horizon Chase Turbo",
    "mainImage": "https://cdn1.epicgames.com/salesEvent/salesEvent/EGS_HorizonChaseTurbo_AQUIRIS_S2_1200x1600-7b51e6b8f8cf6ebd50f5fb77be96ad9d",
    "urlSlug": "lutetiumgeneralaudience"
  }
]

Support

  • The biggest support is a star for me.