1.0.2 • Published 4 months ago

printers v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

Printers

Printers is a simple to use module that allows you print a pdf or a text file. For now, this module only work on macs.

Installation

npm i printers

How to use

Get the default printer

const printers = require('printers')
const defaultPrinter = printers.getPrinter()
/*
    Expected Output: HP....
*/

Print a file

You can give a relative or absolute path to print the file.

const printers = require('printers')
const defaultPrinter = printers.print('/Users/JohnDoe/Desktop/test.txt')
/*
    Expected Output: true
*/
1.0.2

4 months ago

1.0.1

6 months ago

1.0.0

6 months ago