Socket
Book a DemoInstallSign in
Socket

play-store-system

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

play-store-system

Simple play store api

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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}`);
  });
}

Keywords

play store

FAQs

Package last updated on 10 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.