• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
1

Are Node.js addons supported by CEP?

Community Beginner ,
Feb 01, 2015 Feb 01, 2015

Copy link to clipboard

Copied

Is CEP supposed to load node.js addon DLLs (*.node, like Samples/bson.node at master Ā· Adobe-CEP/Samples Ā· GitHub)? If it is, are there any related gotchas?

Views

899

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 02, 2015 Feb 02, 2015

Copy link to clipboard

Copied

Hi Alexander,

JavaScript Modules

All third-party node JavaScript modules are supported. The root search path of third-party modules is the directory which contains your html file. For example, when you do require in file:///your_extension/index.html, CEP will lookup modules under file:///your_extension/node_modules, this rule is exactly the same with upstream node.

Native Modules

Node.js native modules are not directly supported since CEP is using a different V8 version from the official node.

Kind regards,

Lea

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 02, 2015 Feb 02, 2015

Copy link to clipboard

Copied

> Node.js native modules are not directly supported


Thanks for the reply. Does this mean that Node.js native modules may still be supported indirectly? Otherwise, how should the said example work?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

LATEST

One indirect is to use wasm instead of the node library. For example I wanted to use sqlite but instead ended up using sqlite wasm and hosted it in an invisible extension.

-Manan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines