I enclose the code that is in file fb.js:
//
// conn firebird con node.js
//
// inyecciones
var http=require('http');
var url=require('url');
var fs=require('fs');
var querystring = require('querystring');
var firebird=require('node-firebird');
// opciones base de datos
var options = {};
options.host = '127.0.0.1';
options.port = 3050;
options.database = 'database.fdb';
options.user = 'SYSDBA';
options.password = 'masterkey';
options.lowercase_keys = false; // set to true to lowercase keys
options.role = null; // default
options.pageSize = 4096; // default when creating database
firebird.attach(options, function(err, db) {
if (err)
throw err;
// db = DATABASE
db.query('SELECT * FROM EMPRES', function(err, result) {
// IMPORTANT: close the connection
db.detach();
});
});