isrpi

RaspberryPI Check with parse board information

Usage no npm install needed!

<script type="module">
  import isrpi from 'https://cdn.skypack.dev/isrpi';
</script>

README

isRPI

GitHub npm

RaspberryPI Check with parse board information. lightweight, no dependencies, pure javascript

Quick Start

Installation

npm install isrpi

Basic Usage

const isRPI = require("isrpi")

console.log(isRPI())

Output

from Raspberry PI 3B

{
  "warrentyBit": "Warranty has been voided by overclocking",
  "revisionFlag": "new-style revision",
  "memorySize": "1GB",
  "manufacturer": "Sony UK",
  "processor": "BCM2837",
  "model": "3B",
  "revision": "1.2"
}

from Raspberry PI 4

{
  "warrentyBit": "Warranty is intact",
  "revisionFlag": "new-style revision",
  "memorySize": "2GB",
  "manufacturer": "Sony UK",
  "processor": "BCM2711",
  "model": "4B",
  "revision": "1.1"
}

from PC

false