Duino bleep code not compiling

Hi, I am trying to run the following nodejs code, based on the duino module found here: https://github.com/ecto/duino

var arduino = require("duino"); var board = new arduino.Board();

var led = new arduino.Led({ board: board, pin: 13 });

var bleep = function() { led.on(); setTimeout(function() { led.off(); }, 100); } setInterval( bleep, 1000 );

But, I get the following error: bleep_duino:1: error: ‘var’ does not name a type bleep_duino:2: error: ‘var’ does not name a type bleep_duino:4: error: ‘var’ does not name a type bleep_duino:7: error: expected unqualified-id before ‘)’ token bleep_duino:9: error: ‘var’ does not name a type bleep_duino:15: error: expected constructor, destructor, or type conversion before ‘(’ token

My file name is called bleep_duino.ino.

I did type npm install duino, but I don't know how to fix this error. I am new to nodejs. I have an arduino leonardo attached to my PC.

Thank you.

That code is for the PC. You seem to have missed step 3 on the page you linked to.