1var cp = require('child_process');
2
3var exe = './BarcodeReaderCLI';
4var args = [];
5args.push('-type=code128');
6args.push('https://wabr.inliteresearch.com/SampleImages/1d.pdf');
7args.push('@./brcli-example.config');
8
9const proc = cp.spawn(exe, args);
10proc.stdout.on('data', (data) => {
11 console.log(data.toString());
12});
13proc.stderr.on('data', (data) => {
14 console.error(data.toString());
15});