Uploading Node.js Libraries (Axios and xml2js) to EspoCRM

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Darja
    Junior Member
    • May 2024
    • 1

    Uploading Node.js Libraries (Axios and xml2js) to EspoCRM

    Hello EspoCRM Community,

    I’m currently working on integrating some functionalities into EspoCRM using Node.js libraries, specifically Axios and xml2js. Could someone guide me on where to upload these libraries within the EspoCRM structure? Any detailed steps or documentation references would be highly appreciated.

    Thank you!
    ​Darja
  • yuri
    Member
    • Mar 2014
    • 8443

    #2
    Hi,

    Unfortunately, there's no documentation on this question. As extensions are installed without running build in CLI (they can be installed via UI), it's up to developer how to add a library to the extension.

    If a library is available as an UMD module, you need just place the file somewhere and register it in metadata https://docs.espocrm.com/development...a/app-js-libs/. Then you will be able to require/imprt it using AMD or ES6.
    Last edited by yuri; 05-24-2024, 11:03 AM.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...