node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org ยป

lpd-printers

Installing

npm install lpd-printers

Using

TSP100

tsp100 = require('lpd-printers').tsp100;

tsp100.dataFileForP4(
          '192.168.0.123',
          require('fs').readFileSync('foo.pbm'),
          function(err){...});

tsp100.openCashDrawer(
          '192.168.0.123',
          function(err){...});