# Adding npm module and using it

**URL:** <https://discourse.nodered.org/t/adding-npm-module-and-using-it/6655>\
**Category:** General\
**Created:** [10 January 2019 10:58 UTC](https://discourse.nodered.org/t/adding-npm-module-and-using-it/6655 "2019-01-10T10:58:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [11 January 2019 16:39 UTC](https://discourse.nodered.org/t/adding-npm-module-and-using-it/6655/6 "2019-01-11T16:39:42Z")

</div>

As a last resort if you want to install atob from npm then it should work (it did for me) if you correct the missing quote in the require line in `settings.js`:

```auto
functionGlobalContext: {
atob: require('atob')
}

```

---

_[View the full topic](https://discourse.nodered.org/t/adding-npm-module-and-using-it/6655)._
