JavaScript API to communicate with the Phantasm Node.js print server