npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bleuio-nodejs-library

v1.0.3

Published

create bluetooth low energy application with bleuio nodejs library

Readme

BleuIO

N|Solid

Nodejs Library for BleuIO . Supports v2.1.1 Firmware

Requirments

Installation

Install the library by running

npm i bleuio-nodejs-library

In the js file, import


import { bleuIO } from "bleuio-nodejs-library/bleuIO-nodejs-library/index.js";

You are set to go.

Basic Usage

connect to bleuio dongle using following command.

portUtils = bleuIO("/dev/cu.usbmodem4048FDE6EBCB1");

here /dev/cu.usbmodem4048FDE6EBCB1 is the path of the BleuIO dongle that is connected to the computer. to get the path simply run the following command on your terminal.

ls /dev/cu.*

Write to dongle

The following command ATI will request for device information of the dongle.

portUtils.writeData("ATI")

Read from dongle

readData method returns a promise and it will read incoming data from the dongle.

portUtils.readData().then((data) => {
        console.log("Data read from serial port:", data);
    });

Waiting time can also be added if required.

portUtils.readData().then((data) => {
      setTimeout(() => {
        console.log("Data read from serial port:", data);
      }, 3000);
    });

Example of scannign nearby device command

In this example we first set the dongle into central role. Then we will scan for 3 seconds. After 3 seconds waiting time , we read the data.

portUtils.writeData("AT+CENTRAL").then(() => {
  portUtils.writeData("AT+GAPSCAN=3").then(() => {
    portUtils.readData().then((data) => {
      setTimeout(() => {
        console.log("Data read from serial port:", data);
      }, 3000);
    });
  });
});

###Example

Full code to connect to the dongle, set the dongle to central role, scan for nearby devices and finally show the list of devices.

script.js

import { bleuIO } from "bleuio-nodejs-library/bleuIO-nodejs-library/index.js";
const portUtils = bleuIO("/dev/cu.usbmodem4048FDE6EBCB1");
portUtils.writeData("AT+CENTRAL").then(() => {
  portUtils.writeData("AT+GAPSCAN=2").then(() => {
    portUtils.readData().then((data) => {
      setTimeout(() => {
        console.log("Data read from serial port:", data);
      }, 3000);
    });
  });
});

Available functions

Available AT commands can be found at https://www.bleuio.com/getting_started/docs/commands/

Enjoy !

License

MIT