Skip to content

Ace command line with Electron (in addition to Puppeteer)

Daniel Weck edited this page Apr 8, 2021 · 4 revisions

Install Ace command line tool:

  • sudo npm --global install electron --unsafe-perm=true
  • sudo npm --global install @daisy/ace --unsafe-perm=true

Check installed Ace executables:

  • ace -v (e.g. 1.2.0)
  • ace-http -v (e.g. 1.2.0)
  • ace-electron -v (e.g. 1.2.0)

Check Ace Electron executables:

  • which ace-electron (e.g. /usr/local/bin/ace-electron)
  • cat /usr/local/bin/ace-electron, should show:
#!/usr/bin/env node

require('@daisy/ace-axe-runner-electron/bin/ace');

Run Ace command line:

  • ace -V /PATH/TO/EPUB
  • ace-electron -V /PATH/TO/EPUB