Skip to main content

npm modules

A-Parser uses NodeJS and supports any modules from the Node Package Manager catalog:

npmjs.com search results example

Installing modules

A-Parser uses the files/node_modules directory for all additional modules, so installation must be performed from the files/ directory:

Windows

For Windows, we recommend using the Git Bash terminal, as the built-in Windows cmd.exe and PowerShell have many compatibility issues

export PATH=$PWD/dist/nodejs/:$PATH
cd files/
npm install md5

Linux

export PATH=$PWD/dist/nodejs/bin/:$PATH
cd files/
npm install md5

Docker

docker run --rm -v $(pwd)/aparser:/app aparser/runtime sh -c 'export PATH=$PWD/dist/nodejs/bin/:$PATH && cd files && npm install re2'
note

Please note that A-Parser includes NodeJS and the npm package manager in its distribution; no additional installation is required

A-Parser also includes pre-installed modules in the dist/nodejs/node_modules distribution:

  • puppeteer
  • puppeteer-extra
  • lodash
  • re2
  • async-redis
  • async-mutex
  • typescript