Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

simpleble

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simpleble

Bluetooth LE library for Node, Deno, and Bun

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

Node-SimpleBLE

Tags Checks License

Bluetooth Low Energy (BLE) library for Node, Deno, and Bun using the excellent SimpleBLE library.

Installing

How you install node-simpleble depends on which runtime you are using.

Node.js

npm install --save simpleble
import { resolveBindings } from "simpleble";

Bun.sh

bun install simpleble
import { resolveBindings } from "simpleble";

Deno

import { resolveBindings } from "https://deno.land/x/simpleble@0.1.0/mod.ts";

Documentation

Check out the latest documentation here: https://doc.deno.land/https://deno.land/x/simpleble/mod.ts

Building

Node-SimpleBLE depends on SimpleBLE, so make sure submodules are checked out first:

git submodule init
git submodule update

To build Node-SimpleBLE:

npm run build

Running

After building SimpleBLE and the bindings, run one of the examples:

deno run -A --unstable https://deno.land/x/simpleble@0.1.0/examples/deno/scan.ts
deno run -A --unstable ./deno_dist/examples/deno/scan.ts
npx ts-node-esm ./examples/node/scan.ts

License

Released under the MIT License.

Keywords

bindings

FAQs

Package last updated on 04 Dec 2022

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