node querystring not defined in script only
<p>I can use querystring in node 4.2.6 from a script, but I can from a node prompt.  Here's some proof.</p>

<p>I have the following script:</p>

<pre><code>$ cat test.js
console.log(process.versions)
console.log(querystring)
</code></pre>

<p>And I get an error when I run it:</p>

<pre><code>$ node test.js
{ http_parser: '2.5.0',
  node: '4.2.6',
  v8: '4.5.103.35',
  uv: '1.8.0',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '56.1',
  modules: '46',
  openssl: '1.0.2e' }
/path/to/file/test.js:2
console.log(querystring)
            ^
ReferenceError: querystring is not defined
    at Object.&lt;anonymous&gt; (/path/to/file/test.js:2:13)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3
</code></pre>

<p>But if I go into node on the command line, I don't get the error.</p>

<pre><code>$ node
&gt; console.log(process.versions)
{ http_parser: '2.5.0',
  node: '4.2.6',
  v8: '4.5.103.35',
  uv: '1.8.0',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '56.1',
  modules: '46',
  openssl: '1.0.2e' }
undefined
&gt; console.log(querystring)
{ unescapeBuffer: [Function],
  unescape: [Function],
  escape: [Function],
  encode: [Function],
  stringify: [Function],
  decode: [Function],
  parse: [Function] }
undefined
</code></pre>

<p>The console.log() is just for proof--I can't use querystring at all in a script. What could be wrong?</p>