Socket
Book a DemoInstallSign in
Socket

toio-browser

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toio-browser

toio.js for browser

latest
npmnpm
Version
1.0.0-1
Version published
Maintainers
1
Created
Source

toio-browser

toio.js for web browsers

Usage

<script src="https://snoguchi.github.io/toio-browser/toio-browser-1.0.0.js"></script>

Example

<!DOCTYPE html>
<html>
<head>
<script src="https://snoguchi.github.io/toio-browser/toio-browser-1.0.0.js"></script>
</head>
<body>

<button id="connect">connect to cube</button>

<script>
document.getElementById("connect").addEventListener("click", async ev => {
  const cube = await new toio.scanner.NearestScanner().start();
  await cube.connect();
  cube.move(100, 100, 1000);
});
</script>

</body>
</html>

Keywords

toio

FAQs

Package last updated on 18 Jul 2019

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