npm i play-store-system
const pss = require('play-store-system');
const app = new pss();
app.getInfo("com.mojang.minecraftpe").then(info =>{
console.log(info)
});
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
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.
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}`);
});
}