Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

396
Views
how to get all attached printers name on our computer using nodeJS

my scenario is... I'm making a web application for a restaurant using (NodeJS and Angular 12), and they are using thermal printers, all printers connected via USB and LAN. I need a solution - how I can get the list of all connected printers and print receipts on all printers without a preview dialog box..!!!

currently, I'm not able to list all connected printers list, and print receipts on them

please help me to find a proper solution

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

There was a node-printermodule but I guess it was abandoned, the last most recent module for that is zuzel-printer, but the last update is from 6 years ago. Let's hope it fits your needs

Link: zuzel-printer https://www.npmjs.com/package/zuzel-printer

about 4 years ago · Juan Pablo Isaza Report

0

const { exec } = require('child_process');
exec('wmic printer list brief', (err, stdout, stderr) => {
if (err) {
    // node couldn't execute the command
    return;
}
// list of printers with brief details
console.log(stdout);
// the *entire* stdout and stderr (buffered)
stdout = stdout.split("  ");
var printers = [];
j = 0;
stdout = stdout.filter(item => item);
for (i = 0; i < stdout.length; i++) {
    if (stdout[i] == " \r\r\n" || stdout[i] == "\r\r\n") {
        printers[j] = stdout[i + 1];
        j++;
    }
}
// list of only printers name
console.log(printers);
console.log(stderr);
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!