# Using external javascript library

**URL:** <https://discourse.nodered.org/t/using-external-javascript-library/2136>\
**Category:** Developing Nodes\
**Created:** [7 August 2018 10:50 UTC](https://discourse.nodered.org/t/using-external-javascript-library/2136 "2018-08-07T10:50:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![modeller](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@modeller](https://discourse.nodered.org/u/modeller)\
**Post date:** [7 August 2018 10:50 UTC](https://discourse.nodered.org/t/using-external-javascript-library/2136/1 "2018-08-07T10:50:36Z")

</div>

Hi ,

I need a multi-select style form in my node's data-template-name like is provided by [http://loudev.com/#demos](http://loudev.com/#demos)

I've tried and failed to incorporate the external css and script links into the data-template-name. Is it possible?

Another related question, if I wanted to incorporate a custom image in my node's data-template-name , with the image being held inside the package, what path would I use? I'm finding relative paths don't work.

thanks!

---

<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:** [13 August 2018 15:05 UTC](https://discourse.nodered.org/t/using-external-javascript-library/2136/2 "2018-08-13T15:05:58Z")

</div>

> [@modeller](#):
>
> I need a multi-select style form in my node's data-template-name

You need to add the npm package as a dependency to your node's `package.json` so that it gets installed with your node. You then need to work out the correct path to the library so that you can make it available to the front-end. You will find something similar (though more complex as it has to be generic) in my node-red-contrib-uibuilder node.

Once you have worked out the path, you can make it available as a URL, again, uibuilder does this.

For your image, the normal way is to make a folder available for static content by setting `httpStatic` in `settings.js`.
