# Problems adding external npm module

**URL:** https://discourse.nodered.org/t/problems-adding-external-npm-module/83622
**Category:** General
**Created:** [12 December 2023 07:09 UTC](https://discourse.nodered.org/t/problems-adding-external-npm-module/83622 "2023-12-12T07:09:25Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![nelgin](https://avatars.discourse-cdn.com/v4/letter/n/6de8d8/32.png) [@nelgin](https://discourse.nodered.org/u/nelgin)
#### Post date: [12 December 2023 21:03 UTC](https://discourse.nodered.org/t/problems-adding-external-npm-module/83622/10 "2023-12-12T21:03:41Z")

</div>

So I tried with the solution mentioned above and I think I'm pretty close.

I removed the entry in settings.js and in the function \> Setup I entered ansi-to-html and used the variable ansiToHtml.

Now, the output it changed but I just get a string of numbers.

Please refer to [Ansi to ascii or html](https://discourse.nodered.org/t/ansi-to-ascii-or-html/80364) which is what I was trying to do in the first place. So I'm not sure what is going on here.

```auto
const ansitext = msg.payload;

const Converter = ansiToHtml;

const convert = new Converter();

const htmltext = convert.toHtml(ansitext);

msg.payload = htmltext;

```

How my payload looks like "27914910927915154109200205187...." So, again, appreciative of any assistance. I feel I'm close..

---

_[View the full topic](https://discourse.nodered.org/t/problems-adding-external-npm-module/83622)._
