{"_id":"@amberlogicgroup/printer","_rev":"3-3b1dd30107864fd7bf2e093a09605676","name":"@amberlogicgroup/printer","dist-tags":{"latest":"0.5.5"},"versions":{"0.5.3":{"name":"@amberlogicgroup/printer","version":"0.5.3","author":{"url":"http://program-support.co.uk/","name":"Ion Lupascu","email":"ionlupascu@gmail.com"},"_id":"@amberlogicgroup/printer@0.5.3","maintainers":[{"name":"amberlogic","email":"akiva@alg.dev"}],"contributors":[{"name":"Thiago Lugli @thiagoelg"},{"name":"Eko Eryanto @ekoeryanto"}],"homepage":"https://github.com/tojocky/node-printer","bugs":{"url":"https://github.com/tojocky/node-printer/issues"},"dist":{"shasum":"c24779429710f017a99919c78d6e29d7982b6101","tarball":"https://registry.npmjs.org/@amberlogicgroup/printer/-/printer-0.5.3.tgz","fileCount":62,"integrity":"sha512-6epzdsYrP1U7LBED/dYSyepdkjcPbpbVsaw48Zq+7Li3JEfwB7T7SPsmI1usmGa1IyfFVNX4WK6pgQrlIaqgYw==","signatures":[{"sig":"MEQCICAJTAh71bAok+0Cuk5Rtlz3EVbr41ssvK/ajM1JDCMYAiBjHNsUM10HVByGwkamacgjO7mrKg72EKQV0k8KV+t2BA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13891254},"main":"./lib/printer","binary":{"host":"https://github.com/tojocky/node-printer/releases/download/","module_name":"node_printer","module_path":"./lib/","remote_path":"v{version}"},"engines":{"node":">= 4.0.0"},"gitHead":"ff965a414cfb432a37de069aa8914ece52f002e7","scripts":{"test":"nodeunit test","install":"prebuild-install || node-gyp rebuild","rebuild":"node-gyp rebuild","prebuild":"prebuild --all --force --strip --verbose","prebuild:small":"prebuild -t 22.12.0 --force --strip --verbose"},"_npmUser":{"name":"amberlogic","email":"akiva@alg.dev"},"licenses":[{"type":"BSD"}],"repository":{"url":"git+https://github.com/tojocky/node-printer.git","type":"git"},"_npmVersion":"10.9.0","description":"Node.js printer bindings","directories":{},"_nodeVersion":"22.12.0","dependencies":{"nan":"^2.20.0","prebuild-install":"^5.3.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^11.0.0","nodeunit":"*","prebuild":"^13.0.0","prebuild-ci":"^3.1.0"},"_npmOperationalInternal":{"tmp":"tmp/printer_0.5.3_1745220635368_0.7082466977525368","host":"s3://npm-registry-packages-npm-production"}},"0.5.4":{"name":"@amberlogicgroup/printer","version":"0.5.4","author":{"url":"http://program-support.co.uk/","name":"Ion Lupascu","email":"ionlupascu@gmail.com"},"_id":"@amberlogicgroup/printer@0.5.4","maintainers":[{"name":"amberlogic","email":"akiva@alg.dev"}],"contributors":[{"name":"Thiago Lugli @thiagoelg"},{"name":"Eko Eryanto @ekoeryanto"}],"homepage":"https://github.com/tojocky/node-printer","bugs":{"url":"https://github.com/tojocky/node-printer/issues"},"dist":{"shasum":"835946f451bec3d86f93443e9eaee6f589d74b76","tarball":"https://registry.npmjs.org/@amberlogicgroup/printer/-/printer-0.5.4.tgz","fileCount":62,"integrity":"sha512-vsqOOAFhWvHO5fch1oSomU2AeIzhE5LQe9gIP0zfGgGDf2LiTFUUzfNejvp3EvLJ9q5hDdZBd5YOkHPkBVs47g==","signatures":[{"sig":"MEUCIQDjwUpUo6EOtDajk/zXKc60eK/n/L7mkauzmb45tbYwFwIgbIaMgfICh4tOghvMj8KNBHkPRZMOI3EoYkJTmMCDKNg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13421820},"main":"./lib/printer","binary":{"host":"https://github.com/tojocky/node-printer/releases/download/","module_name":"node_printer","module_path":"./lib/","remote_path":"v{version}"},"engines":{"node":">= 4.0.0"},"gitHead":"ff965a414cfb432a37de069aa8914ece52f002e7","scripts":{"test":"nodeunit test","install":"prebuild-install || node-gyp rebuild","rebuild":"node-gyp rebuild","prebuild":"prebuild --all --force --strip --verbose","prebuild:small":"prebuild -t 22.12.0 --force --strip --verbose","prebuild:electron":"prebuild -t 30.0.6 -r electron --force --strip --verbose"},"_npmUser":{"name":"amberlogic","email":"akiva@alg.dev"},"licenses":[{"type":"BSD"}],"repository":{"url":"git+https://github.com/tojocky/node-printer.git","type":"git"},"_npmVersion":"10.9.0","description":"Node.js printer bindings","directories":{},"_nodeVersion":"22.12.0","dependencies":{"nan":"^2.20.0","prebuild-install":"^5.3.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^11.0.0","nodeunit":"*","prebuild":"^13.0.0","prebuild-ci":"^3.1.0"},"_npmOperationalInternal":{"tmp":"tmp/printer_0.5.4_1745221022190_0.7661383517860667","host":"s3://npm-registry-packages-npm-production"}},"0.5.5":{"name":"@amberlogicgroup/printer","description":"Node.js printer bindings","version":"0.5.5","homepage":"https://github.com/tojocky/node-printer","author":{"name":"Ion Lupascu","email":"ionlupascu@gmail.com","url":"http://program-support.co.uk/"},"contributors":[{"name":"Thiago Lugli @thiagoelg"},{"name":"Eko Eryanto @ekoeryanto"}],"repository":{"type":"git","url":"git+https://github.com/tojocky/node-printer.git"},"devDependencies":{"node-gyp":"^11.0.0","nodeunit":"*","prebuild":"^13.0.0","prebuild-ci":"^3.1.0"},"engines":{"node":">= 4.0.0"},"scripts":{"install":"prebuild-install || node-gyp rebuild","prebuild":"prebuild --all --force --strip --verbose","prebuild:small":"prebuild -t 22.12.0 --force --strip --verbose","prebuild:electron":"prebuild -t 30.5.1 -r electron --force --strip --verbose","rebuild":"node-gyp rebuild","test":"nodeunit test"},"binary":{"module_name":"node_printer","module_path":"./lib/","host":"https://github.com/tojocky/node-printer/releases/download/","remote_path":"v{version}"},"licenses":[{"type":"BSD"}],"main":"./lib/printer","dependencies":{"nan":"^2.20.0","prebuild-install":"^5.3.4"},"_id":"@amberlogicgroup/printer@0.5.5","gitHead":"ff965a414cfb432a37de069aa8914ece52f002e7","bugs":{"url":"https://github.com/tojocky/node-printer/issues"},"_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-FfvY5BhUMsW/rqLssYw1mFxNQeZGXOHq5zxJ2zqt885G0xe4HFgU5HERf7SpPW+2oteC6W92fsRdrTZSeWaFrA==","shasum":"da433931c9b22b4b597bd4d8d0a17253242924f5","tarball":"https://registry.npmjs.org/@amberlogicgroup/printer/-/printer-0.5.5.tgz","fileCount":62,"unpackedSize":13484819,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHqPmMTo6aivPSnvK0pZa45QSOoJFp845EwqflKIZnvBAiAkGrjj3kzE+IGdq1ide5OVwvmw0Gd1PaoaDJvsiYIKig=="}]},"_npmUser":{"name":"amberlogic","email":"akiva@alg.dev"},"directories":{},"maintainers":[{"name":"amberlogic","email":"akiva@alg.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/printer_0.5.5_1745221163532_0.8768798151179467"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-21T07:30:35.274Z","modified":"2025-04-21T07:39:23.934Z","0.5.3":"2025-04-21T07:30:35.597Z","0.5.4":"2025-04-21T07:37:02.440Z","0.5.5":"2025-04-21T07:39:23.749Z"},"bugs":{"url":"https://github.com/tojocky/node-printer/issues"},"author":{"name":"Ion Lupascu","email":"ionlupascu@gmail.com","url":"http://program-support.co.uk/"},"homepage":"https://github.com/tojocky/node-printer","repository":{"type":"git","url":"git+https://github.com/tojocky/node-printer.git"},"description":"Node.js printer bindings","contributors":[{"name":"Thiago Lugli @thiagoelg"},{"name":"Eko Eryanto @ekoeryanto"}],"maintainers":[{"name":"amberlogic","email":"akiva@alg.dev"}],"readme":"node-printer\r\n============\r\nNative bind printers on POSIX and Windows OS from Node.js, electron and node-webkit.\r\n\r\n<table>\r\n  <thead>\r\n    <tr>\r\n      <th>Linux</th>\r\n      <th>Windows</th>\r\n      <th>Dependencies</th>\r\n    </tr>\r\n  </thead>\r\n  <tbody>\r\n    <tr>\r\n      <td align=\"center\">\r\n        <a href=\"https://travis-ci.org/tojocky/node-printer\"><img src=\"https://travis-ci.org/tojocky/node-printer.svg?branch=master\"></a>\r\n      </td>\r\n      <td align=\"center\">\r\n        <a href=\"https://ci.appveyor.com/project/tojocky/node-printer\"><img src=\"https://ci.appveyor.com/api/projects/status/9y800f36wla35ee7?svg=true\"></a>\r\n      </td>\r\n      <td align=\"center\">\r\n        <a href=\"https://david-dm.org/tojocky/node-printer\"><img src=\"https://david-dm.org/tojocky/node-printer.svg\"></a>\r\n      </td>\r\n    </tr>\r\n  </tbody>\r\n</table>\r\n\r\nIf you have a problem, ask question to [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tojocky/node-printer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) or find/create a new [Github issue](https://github.com/tojocky/node-printer/issues)\r\n\r\n### Reason:\r\n\r\nI was involved in a project where I need to print from Node.JS. This is the reason why I created this project and I want to share my code with others.\r\n\r\n\r\n### Features:\r\n\r\n* no dependecies;\r\n* native method wrappers from Windows  and POSIX (which uses [CUPS 1.4/MAC OS X 10.6](http://cups.org/)) APIs;\r\n* compatible with node v0.8.x, 0.9.x and v0.11.x (with 0.11.9 and 0.11.13);\r\n* compatible with node-webkit v0.8.x and 0.9.2;\r\n* `getPrinters()` to enumerate all installed printers with current jobs and statuses;\r\n* `getPrinter(printerName)` to get a specific/default printer info with current jobs and statuses;\r\n* `getPrinterDriverOptions(printerName)` ([POSIX](http://en.wikipedia.org/wiki/POSIX) only) to get a specific/default printer driver options such as supported paper size and other info\r\n* `getSelectedPaperSize(printerName)` ([POSIX](http://en.wikipedia.org/wiki/POSIX) only) to get a specific/default printer default paper size from its driver options\r\n* `getDefaultPrinterName()` return the default printer name;\r\n* `printDirect(options)` to send a job to a specific/default printer, now supports [CUPS options](https://www.cups.org/doc/options.html) passed in the form of a JS object (see `cancelJob.js` example). To print a PDF from windows it is possible by using [node-pdfium module](https://github.com/tojocky/node-pdfium) to convert a PDF format into EMF and after to send to printer as EMF;\r\n* `printFile(options)`  ([POSIX](http://en.wikipedia.org/wiki/POSIX) only) to print a file;\r\n* `getSupportedPrintFormats()` to get all possible print formats for printDirect method which depends on OS. `RAW` and `TEXT` are supported from all OS-es;\r\n* `getJob(printerName, jobId)` to get a specific job info including job status;\r\n* `setJob(printerName, jobId, command)` to send a command to a job (e.g. `'CANCEL'` to cancel the job);\r\n* `getSupportedJobCommands()` to get supported job commands for setJob() depends on OS. `'CANCEL'` command is supported from all OS-es.\r\n\r\n\r\n### How to install:\r\n```\r\nnpm install printer\r\n```\r\n\r\n### How to use:\r\n\r\nSee [examples](https://github.com/tojocky/node-printer/tree/master/examples)\r\n\r\n### Author(s):\r\n\r\n* Ion Lupascu, ionlupascu@gmail.com\r\n\r\n### Contibutors:\r\n\r\n* Thiago Lugli, @thiagoelg\r\n* Eko Eryanto, @ekoeryanto\r\n\r\nFeel free to download, test and propose new futures\r\n\r\n### License:\r\n [The MIT License (MIT)](http://opensource.org/licenses/MIT)\r\n","readmeFilename":"README.md"}