# Using .env to change a json package

**URL:** <https://forum.freecodecamp.org/t/using-env-to-change-a-json-package/425244>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [October 12, 2020, 3:41pm UTC](https://forum.freecodecamp.org/t/using-env-to-change-a-json-package/425244 "2020-10-12T15:41:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sky020](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sky020/32/128093_2.png) [@Sky020](https://forum.freecodecamp.org/u/Sky020)\
**Post date:** [October 12, 2020, 4:38pm UTC](https://forum.freecodecamp.org/t/using-env-to-change-a-json-package/425244/2 "2020-10-12T16:38:20Z")

</div>

Hello there,

This is almost identical to the issue a camper was having in this post:

> [@Node and Express Json response Error](https://forum.freecodecamp.org/t/node-and-express-json-response-error/424549/2):
>
> Welcome, hasnatali. When do you expect this code to run? let response = '' ; console.log(process.env.MESSAGE\_STYLE); if(process.env.MESSAGE\_STYLE==='uppercase'){ // response = "Hello json".toUpperCase(); response = "Hello json".toUpperCase(); } else{ response = "Hello json"; } console.log('Bihy',{"style":response}) Also, I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and f…

Hope that helps

---

_[View the full topic](https://forum.freecodecamp.org/t/using-env-to-change-a-json-package/425244)._
