New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

leitzicon

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leitzicon

a node.js module to print labels using the Leitz Icon printer

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

Leitz Icon label printer

A node.js module to print labels using the Leitz Icon printer.

It uses the Internet Printing Protocol (IPP), which is the prefered option when printing over wifi.

It also uses the png2lwxl node.js module, written by me, to convert PNG files to the appropriate printer format.

Install

You can install leitzicon using the Node Package Manager (npm):

npm install leitzicon

Simple example

var leitz = require('leitzicon');
var fs = require('fs');

leitz.printPNG(__dirname + '/test.png', 'http://192.168.1.1:631/ipp/print', {}, function (err) {
    if(err) return console.log(err);
    console.log("print complete");
});

png2lwxl options

  • landscape: rotates image 90 degrees [default = false].
  • blackwhiteThreshold: enter a value between 0 and 255. The higher the value, the more pixels will be treated as black [default = 128].

example with options

var leitz = require('leitzicon');
var fs = require('fs');

leitz.printPNG(__dirname + '/test.png', 'http://192.168.1.1:631/ipp/print', {
    landscape: true,
    blackwhiteThreshold: 110
}, function (err) {
    if(err) return console.log(err);
    console.log("print complete");
});

FAQs

Package last updated on 24 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc