- Print
- DarkLight
- PDF
NPM Package Support (Experimental)
- Print
- DarkLight
- PDF
Starting from Apps-Engine v1.28.0 (released in Rocket.Chat v4.0), Rocket.Chat Apps include a subset of NPM packages as runtime dependencies. While the exact list of supported packages cannot be specified due to the vast number of options available, here are some general guidelines:
Utility packages that are not dependent on NodeJS' native modules should work (for example,
lodash
,momentjs
, etc).Packages that create any server, be it HTTP, TCP, UDP, or IPC, will not work (for example,
express
,hapi
, etc).Packages that interact with the
fs
andos
modules will not work.
If a package that should be compatible is not working as expected, open an issue in the Rocket.Chat.Apps-engine repository and the team will check it out.
When using NPM packages in your app, make sure to use the latest
rc-apps
version - it is responsible for bundling the code of the packages along with the app's source code.