Package Details: node-hp-scan-to 1.4.2-0

Git Clone URL: https://aur.archlinux.org/node-hp-scan-to.git (read-only, click to copy)
Package Base: node-hp-scan-to
Description: Little command line program that allow to send scan from device to computer. For this purpose, the original HP Windows application's interaction with the device has been reverse engineered.
Upstream URL: https://github.com/manuc66/node-hp-scan-to
Keywords: all-in-one computer hp pc scan
Licenses: MIT
Submitter: manuc66
Maintainer: manuc66
Last Packager: manuc66
Votes: 2
Popularity: 0.000103
First Submitted: 2022-07-24 20:33 (UTC)
Last Updated: 2023-11-29 22:51 (UTC)

Required by (0)

Sources (1)

Latest Comments

manuc66 commented on 2023-07-15 19:43 (UTC)

Hello @bunburya

Thanks for reporting, should be fixed now!

bunburya commented on 2023-07-11 21:46 (UTC) (edited on 2023-07-11 21:47 (UTC) by bunburya)

Running this via systemd wouldn't work for me as it choked on the trailing comma in the JSON included at /etc/node-hp-scan-to/default.json:

{
  "debug": false,
}

Removing the trailing comma fixes the issue.

The error message:

 /usr/lib/node_modules/node-hp-scan-to/node_modules/config/lib/config.js:853
     throw new Error("Cannot parse config file: '" + fullFilename + "': " + e3);
     ^
 Error: Cannot parse config file: '/etc/node-hp-scan-to/default.json': SyntaxError: Expected double-quoted property name in JSON at position 20
     at util.parseFile (/usr/lib/node_modules/node-hp-scan-to/node_modules/config/lib/config.js:853:11)
     at /usr/lib/node_modules/node-hp-scan-to/node_modules/config/lib/config.js:649:26
     at Array.forEach (<anonymous>)
     at util.loadFileConfigs (/usr/lib/node_modules/node-hp-scan-to/node_modules/config/lib/config.js:648:16)
     at new Config (/usr/lib/node_modules/node-hp-scan-to/node_modules/config/lib/config.js:113:27)
     at Object.<anonymous> (/usr/lib/node_modules/node-hp-scan-to/node_modules/config/lib/config.js:1510:31)
     at Module._compile (node:internal/modules/cjs/loader:1233:14)
     at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
     at Module.load (node:internal/modules/cjs/loader:1091:32)
     at Module._load (node:internal/modules/cjs/loader:938:12)

remanifest commented on 2023-03-21 15:24 (UTC)

Nice job on the changes @manuc66!

It's working fine now.

manuc66 commented on 2023-03-20 19:49 (UTC)

@remanifest it should be better now

remanifest commented on 2023-03-20 13:20 (UTC) (edited on 2023-03-20 13:20 (UTC) by remanifest)

Upgrading this failed for me until I modified lines 46 and 47 of the PKGBUILD to include sudo.

sudo mkdir -p /etc/node-hp-scan-to
sudo touch /etc/node-hp-scan-to/default.json