New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

node-toypad

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-toypad

A JavaScript module to control the LEGO Dimensions ToyPad

latest
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

node-toypad - A JavaScript module to control the LEGO Dimensions ToyPad

Installation

Node.js v22.0+ required.

npm install node-toypad --save

Reading tags

import { ToyPad, TagType } from "node-toypad";

const toyPad = new ToyPad();

toyPad.on("add", async (event) => {
  const { id, type } = await toyPad.readTag(event.panel, event.signature);
  if (type === TagType.Character) {
    const character = ToyPad.metadata.getCharacterById(id);
    console.log(`Character ${character?.name ?? id}`);
  } else {
    const vehicle = ToyPad.metadata.getVehicleById(id);
    console.log(`Vehicle ${vehicle?.name ?? id}`);
  }
});

await toyPad.connect();

More examples are available in the examples directory.

FAQs

Package last updated on 23 Mar 2026

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