Parser for protocols information of Bird internet routing dameon. Tested with BIRD 1.6.3.
The BIRD usually run as root. If you run your application with other user (very recommended) then you must add this line to sudoers:
username ALL=(ALL) NOPASSWD: /usr/sbin/birdc show protocols all
It is a very simple module, so usage is easy:
var protocols = require('bird-protocols-info');
protocols(function(data) {
console.log(data);
});
That is all.
I'll fix it to be able to switch between IPv4 and IPv6.