# Help with using an npm package in a node-red function

**URL:** <https://discourse.nodered.org/t/help-with-using-an-npm-package-in-a-node-red-function/89760>\
**Category:** General\
**Created:** [25 July 2024 15:06 UTC](https://discourse.nodered.org/t/help-with-using-an-npm-package-in-a-node-red-function/89760 "2024-07-25T15:06:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee\_evo](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@lee\_evo](https://discourse.nodered.org/u/lee_evo)\
**Post date:** [25 July 2024 15:06 UTC](https://discourse.nodered.org/t/help-with-using-an-npm-package-in-a-node-red-function/89760/1 "2024-07-25T15:06:35Z")

</div>

Ok, I'm trying to use an NPM package in a node-red function, but struggling to get it working.

The package in question is "phonetic-alphabet-converter".

Any help appreciated

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [25 July 2024 15:13 UTC](https://discourse.nodered.org/t/help-with-using-an-npm-package-in-a-node-red-function/89760/2 "2024-07-25T15:13:29Z")

</div>

Starts by reading the following:

[https://nodered.org/docs/user-guide/writing-functions#using-the-functionexternalmodules-option](https://nodered.org/docs/user-guide/writing-functions#using-the-functionexternalmodules-option)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 July 2024 16:55 UTC](https://discourse.nodered.org/t/help-with-using-an-npm-package-in-a-node-red-function/89760/3 "2024-07-25T16:55:25Z")

</div>

What have you tried? You might want to share an example flow.

---

<div class="post-metadata">

**Author:** ![lee\_evo](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@lee\_evo](https://discourse.nodered.org/u/lee_evo)\
**Post date:** [25 July 2024 17:08 UTC](https://discourse.nodered.org/t/help-with-using-an-npm-package-in-a-node-red-function/89760/4 "2024-07-25T17:08:44Z")

</div>

Thanks, got it working now.

I'm using frigate to trigger a flow when a car enters the driveway and fire an alexa notification. Pass that to another flow to read the licence plate and send it to a couple of AWTRIX displays. Lastly convert the registration to the phonetic alphabet and read that aloud.

---

<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:** [23 October 2024 17:08 UTC](https://discourse.nodered.org/t/help-with-using-an-npm-package-in-a-node-red-function/89760/5 "2024-10-23T17:08:45Z")

</div>

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