S1NJED / Raspberry-Pi-4-Stock-Checker-Library

Simple library to check Raspberry Pi 4 stock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry-Pi-4-Stock-Checker-Library

A simple javascript library to check stock of the Raspberry Pi 4 Model B.

This library scrap the public data from official stores of many countries like:

  • 🇫🇷 France
  • More soon ... (🏴󠁧󠁢󠁥󠁮󠁧󠁿, 🇺🇸, ...)

Prerequisite

Install Node.js

Documentation

  • RaspberryPiNotif (class)
    • storesNames (property) - Array of all available stores names
    • checkStock (method) - Check stock from a single store
      • storeName (string) - Name of the store to check his stock
      • gb (number) - OPTIONAL, Ram size of the raspberry Pi (2, 4 OR 8), if no gb given it will get information stock for every ram sizes
      • delay (number) - OPTIONAL, by default 500 ms, delay in ms between each requests
      • @return - Array of objects that contains informations about the stock
    • checkStockGB (method) - Check stock for the Raspberry Pi 4 X GB from every available stores.
      • gb (number) - Ram sizes of the Raspberry Pi you want to check
      • @return - Array of objects that contains informations about the stock

Checking official stores from the Raspberry Pi Website

About

Simple library to check Raspberry Pi 4 stock


Languages

Language:JavaScript 99.7%Language:Batchfile 0.3%