
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
This is a Node.js library that wraps libhelium.
var helium = require('nodehelium');
// create a helium connection
obj = new helium.Helium();
// open it
obj.open();
var token = "PbOkU4Jo+NObbPe27MJGNQ==";
var mac = "000000fffff00002";
var i = 0;
// set up the message callback
obj.on( 'message', function(data) {
console.log("Message ");
console.log(data);
if (i >= 5) {
console.log("unsubscribing from", mac)
obj.unsubscribe(mac);
setTimeout(function() {
console.log("closing helium connection");
obj.close();}, 5000);
}
i++;
});
// subscribe to a device
obj.subscribe(mac, token);
// send the device a message
obj.send(mac, token, "hello from node.js");
Install libhelium from the OSX package
Then you should be able to npm install nodehelium
.
Install libuv and libhelium from the packagecloud packages
Then npm install nodehelium
should work.
Build libuv and libhelium from source and install them. When building libu be sure to export CFLAGS="-fPIC" before running './configure' and 'make'. Then npm install nodehelium
.
The reason libuv is needed is because libhelium uses a newer libuv than nodejs 0.10.x uses, and we have to rewrite the symbol table in libhelium and libuv so it doesn't conflict with the libuv symbols in node.js. This hack should be unnecessary after nodejs 0.12 is released.
FAQs
Node.js Helium API wrapper
We found that nodehelium demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.