sane-scanimage-wrapper
simple wrapper around sane scanimage to scan images from node
Requirements
This module is a wrapper around sane's scanimage
utility, you need to have sane installed.
sudo apt-get install sane
Install
npm install --save sane-scanimage-wrapper
API
listDevices
Returns a promise that is resolved to an Array of available devices.
Example:
var sane = ; sane; /* output :[ { name: 'epson2:net:192.168.0.38', vendor: 'Epson', model: 'PID 0891', type: 'flatbed scanner', index: '0' } ]*/
Scan
Return a stream of the scaned image.
var sane = ;var fs = ; var scanner = ;scanner;