Skip to content

Unbreak4ble/play-store-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play Store System

this is a library that is able to notify updates of a specific apps, and get information from an app

Install

npm i play-store-system

Get App Info

const pss = require('play-store-system');

const app = new pss();

app.getInfo("com.mojang.minecraftpe").then(info =>{
  console.log(info)
});

Update Notify

const pss = require('play-store-system');

const app = new pss();

app.on('com.mojang.minecraftpe', {startMessage: true, repeat: true, ms: 500, displayErrors: false}, info => {
  console.log(`${info.version}`);
});

The startMessage property can alert when event initialize.

The repeat property can start the event automatically without the update actually being released.

The ms property defines a miliseconds for the time to check for updates.

The displayErrors property defines whether you want to display annoying errors

Search System

const pss = require('play-store-system');

const app = new pss();

app.search({
  term: "minecraft",
  num: 5
}).then((appIds) => {
  console.log(appIds);
});

The term is the name of the application to application

The num is the maximum number of applications found. The limit for applications found is 50.

Check For More Apps Update

const pss = require('play-store-system');

const app = new pss();

const apps = ['com.mojang.minecraftpe', 'com.supercell.clashofclans'];

for(let appId of apps){
  app.on(appId, {}, (info) =>{
    console.log(`new update of ${info.appId}, version: ${info.version}`);
  });
}

Releases

No releases published

Packages

No packages published