portcullis
v3.1.2
Published
portreserve utilities
Downloads
7
Readme
Portcullis
A utility for managing port reservations ala portreserve.
var pc = require('portcullis');
var jar = pc.Jar.parse(['ssh 22', 'smtp/tcp 25'].join('\n'));
jar.reserve('http 0', function () {
jar.reservations("sshd", console.log);
});
pc.Jar.stringify(jar) // outputs in portreserve file format
pc.Reservation.parse(line) // outputs in portreserve file format
pc.Reservation.stringify(reservation) // outputs in portreserve file format