# functionGlobalContext for modules with "@" or "/" in name?

**URL:** <https://discourse.nodered.org/t/functionglobalcontext-for-modules-with-or-in-name/86434>\
**Category:** General\
**Created:** [14 March 2024 17:35 UTC](https://discourse.nodered.org/t/functionglobalcontext-for-modules-with-or-in-name/86434 "2024-03-14T17:35:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndoggac](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@ndoggac](https://discourse.nodered.org/u/ndoggac)\
**Post date:** [14 March 2024 17:35 UTC](https://discourse.nodered.org/t/functionglobalcontext-for-modules-with-or-in-name/86434/1 "2024-03-14T17:35:08Z")

</div>

I've already implemented a functionGlobalContext in the settings.js file for binary\_parser using the following, drawn from a specific online example using that module.

```auto
functionGlobalContext: {
        binary_parser:require('binary-parser').Parser,
    },

and then in my function node....

var Packet = global.get('binary_parser');

var myheader = new Packet()
  .endianess("big")
  .uint8("version");

```

Now I'm trying to do the same for the following two modules, and I can't get them to work. I'm not sure if it's the "@" and/or "/" symbols, or a lack of an equivalent constructor? The equivalent of the .Parser at the end of the settings.js line? I've tried a lot of combinations with no luck.

Could anyone provide to me both the settings.js entry AND the code to add to the function (if any) to get this to work? I also tried implementing this in the "Setup" tab of the function node with no luck.

[RTCM Module](https://www.npmjs.com/package/@gnss/rtcm?activeTab=readme)

[NTRIP Module](https://www.npmjs.com/package/@ntrip/caster)

Thank you for any help!

---

<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:** [12 June 2024 17:35 UTC](https://discourse.nodered.org/t/functionglobalcontext-for-modules-with-or-in-name/86434/2 "2024-06-12T17:35:08Z")

</div>

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