# Node properties stored in external json file

**URL:** <https://discourse.nodered.org/t/node-properties-stored-in-external-json-file/47638>\
**Category:** General\
**Created:** [25 June 2021 09:13 UTC](https://discourse.nodered.org/t/node-properties-stored-in-external-json-file/47638 "2021-06-25T09:13:30Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 June 2021 10:04 UTC](https://discourse.nodered.org/t/node-properties-stored-in-external-json-file/47638/11 "2021-06-25T10:04:08Z")

</div>

> [@OmkarNodered](#):
>
> can I get one example how we can use env variable inside settings.js

See this: [How to set env variable - #5 by knolleary](https://discourse.nodered.org/t/how-to-set-env-variable/18612/5)

> [@OmkarNodered](#):
>
> and use it in node red.

From the [docs](https://nodered.org/docs/user-guide/environment-variables)

> Any node property can be set with an environment variable by setting its value to a string of the form `${ENV_VAR}` . When the runtime loads the flows, it will substitute the value of that environment variable before passing it to the node.
> 
> This only works if it replaces the entire property - it cannot be used to substitute just part of the value. For example, it is _not_ possible to use `CLIENT-${HOST}` .

e.g...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/a/7a14c36a0b81f986a95b4821a1bfe90d0972c4bc.png)

---

_[View the full topic](https://discourse.nodered.org/t/node-properties-stored-in-external-json-file/47638)._
