Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
node-pirit-printer
Advanced tools
Pirit is roll printer using for printing cash receipt.
For connection to working horses it use COM Port or USB Type A (USB use virtual COM Port driver to communicate with printer)
$ npm i node-pirit-printer --save
var connect = require('node-pririt-printer').connect;
connect(function(err, pirit) {
if (err) return console.error(err);
pirit
//wrote some text
.writeLine("Оно может сцепляться")
.writeLine("Можно напечатать много всего инетересного, но не по теме")
.writeLine("Ножик будет резать неправильно, если не отмотать 4 или 8 строк перед вызовом partialSlice или Slice")
.writeLine("Так как каждый раз Pirit отрезал по линии")
//When we want slice paper, we need roll 4 or more rows
.rollRow(8)
//And slice after print and roll
.partialSlice()
.writeLine("Потом опять что-то печатать")
.writeLine("Потом опять что-то печатать")
.writeLine("Потом опять что-то печатать")
.safeSlice()
//When we done with commands, we can use send, sendAndClean or sendAndClose to send buffer to Pirit Printer
.sendAndClose();
});
When you call connect function, it trying find Pirit Printer as COM device. When connect was opened it call callback function and set as second argument object of Pirit constructor.
After all you can use Pirit API
To see methods documentation use ”jsdoc“ generator.
FAQs
Pirit Printer COM Node.js API
The npm package node-pirit-printer receives a total of 0 weekly downloads. As such, node-pirit-printer popularity was classified as not popular.
We found that node-pirit-printer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.