title: Access to fields of native application from node.js
body: <p>I have a native Android (Java) mobile application but now I have to run node.js server on client side. I'm new to all this stuff, so I decided to use Node.js for Mobile Apps (<a href="https://code.janeasystems.com/nodejs-mobile" rel="nofollow noreferrer">https://code.janeasystems.com/nodejs-mobile</a>) to run my index.js file.
  I have added all needed NDK staff according to instructions and everything works fine till this moment in JS code:</p>
  <pre><code>  const o = {
                  serverUrl: process.env.SERVER_URL,
                  token: process.env.TOKEN,
               ...
              };
  </code></pre>
  <p>JS code for some reasons unable to see &quot;.env&quot; file</p>
  <pre><code>NODEJS-MOBILE: path.js:28
  throw new TypeError('Path must be a string. Received ' + inspect(path));
  </code></pre>
  <p>and even if be able - java part will not be able to update TOKEN field because it's impossible to write to file with empty name (at least, I didn't succeed).</p>
  <p>So, the question is what instruments (local files/libraries/SharedPreferences?) I can use to be able to update fields from java code and use them in JS code?</p>
  <p>I'm new to non-native development, so any hint would be appreciated.</p>