cupsdm-builder
CUPS drivers builder
Install
$ npm install cupsdm-builder
Usage
const Builder = ; Builder
API
Builder(pkg, [options])
pkg
Type: string
The CUPS driver libraries package in bower install package format.
options
cwd
Type: string
Default: process.cwd()
The working directory that the package stored in.
scriptUriTemplate
Type: string
Default: undefined
The scripts of install and uninstall urls generation template based on handlebars.
For example:
https://raw.githubusercontent.com/oodolabs/cups-drivers/master/{{{maker}}}/{{{driver}}}/{{{script}}}
.build()
Build CUPS drivers libraries to flat json format like:
info: endpoint: name: 'cups-drivers' source: 'oodolabs/cups-drivers' target: '*' canonicalDir: '/Users/taoyuan/dev/oodo/oodo-printers/cupsdm-builder/test/tmp/cups-drivers' pkgMeta: name: 'cups-drivers' homepage: 'https://github.com/oodolabs/cups-drivers' _release: '52c4b3769f' _resolution: type: 'branch' branch: 'master' commit: '52c4b3769f0ff9fe9ea163c0f409aa0c8e92d40d' _source: 'https://github.com/oodolabs/cups-drivers.git' _target: '*' dependencies: {} nrDependants: 0 drivers: model: 'Brother BrGenPrintML2 for CUPS' maker: 'Brother' driver: 'BrGenPrintML2' scripts: install: 'https://raw.githubusercontent.com/oodolabs/cups-drivers/master/Brother/BrGenPrintML2/install.sh' model: 'Brother DCP-1618W' maker: 'Brother' driver: 'BrGenPrintML2' scripts: install: 'https://raw.githubusercontent.com/oodolabs/cups-drivers/master/Brother/BrGenPrintML2/install.sh' compatible: 'Brother BrGenPrintML2 for CUPS' model: 'HP Deskjet 5820 Series, hpcups 3.16.11' maker: 'HP' driver: 'hplip' scripts: install: 'https://raw.githubusercontent.com/oodolabs/cups-drivers/master/HP/hplip/install.sh'
License
MIT © Oodolabs