Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-pirit-printer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pirit-printer - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

package.json
{
"name": "node-pirit-printer",
"version": "0.1.6",
"version": "0.1.7",
"description": "Pirit Printer COM Node.js API",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -209,4 +209,4 @@ /**

Pirit.prototype.ALIGN_LEFT = 0.48;
Pirit.prototype.ALIGN_CENTER = 2.50;
Pirit.prototype.ALIGN_RIGHT = 1.49;
Pirit.prototype.ALIGN_RIGHT = 2.50;
Pirit.prototype.ALIGN_CENTER = 1.49;

@@ -221,5 +221,26 @@ /**

return this.writeHex([0x1B, 0x61, type]);
}
};
Pirit.prototype.drawLine = function(symbol) {
var line = '';
while(line.length < 44) {
line += symbol;
}
this.align(this.ALIGN_CENTER);
return this.writeLine(line);
};
Pirit.prototype.writeSepLine = function(a, b, symbol){
a = a.toString();
b = b.toString();
var line = a;
while(line.length < 44 - b.length) {
line += symbol;
}
line += b;
this.align(this.ALIGN_CENTER);
return this.writeLine(line);
};
module.exports = Pirit;
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