# External libraries in a function node

**URL:** <https://discourse.nodered.org/t/external-libraries-in-a-function-node/100243>\
**Category:** General\
**Tags:** help\
**Created:** [25 January 2026 23:30 UTC](https://discourse.nodered.org/t/external-libraries-in-a-function-node/100243 "2026-01-25T23:30:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vico](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vico/32/62181_2.png) [@vico](https://discourse.nodered.org/u/vico)\
**Post date:** [25 January 2026 23:30 UTC](https://discourse.nodered.org/t/external-libraries-in-a-function-node/100243/1 "2026-01-25T23:30:44Z")

</div>

I set up a couple of RSS feeds to post in my Discord server (yeah, after all those years i figured out how to do it finally), but one of them output HTML on its `article.description` property.

When i was forwarding that to discord with a node.js script i used [GitHub - mixmark-io/turndown: 🛏 An HTML to Markdown converter written in JavaScript](https://github.com/mixmark-io/turndown) to convert the html string to markdown to pretty print on Discord, but how i can use that library on a function node on Node.RED? Gemini says i should run the habitual `npm install` command, but i dont know in what folder.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 January 2026 00:18 UTC](https://discourse.nodered.org/t/external-libraries-in-a-function-node/100243/2 "2026-01-26T00:18:59Z")

</div>

You can just specify the module by name.

See: [Use any npm module in Node-RED • FlowFuse](https://flowfuse.com/blog/2023/06/import-modules/)

---

<div class="post-metadata">

**Author:** ![vico](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vico/32/62181_2.png) [@vico](https://discourse.nodered.org/u/vico)\
**Post date:** [26 January 2026 00:48 UTC](https://discourse.nodered.org/t/external-libraries-in-a-function-node/100243/3 "2026-01-26T00:48:02Z")

</div>

thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 February 2026 00:48 UTC](https://discourse.nodered.org/t/external-libraries-in-a-function-node/100243/4 "2026-02-09T00:48:11Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
