Docs

Print a file

How does it work?

Printfile makes a temporary file with the source of the target file in a directory in your home dir (~/printfile) which will be opened and you will be prompted to print. When you select an option, the file will be deleted.

Install

npm i print-file # -g if you want a global CLI command, may require prepending sudo

API Example

const print = require('print-file')

print({ includeName:true })

Parameters

CLI

pf './file' includeName

Parameters

Last updated

Was this helpful?