title: Using .toLocaleString() in Node.js
body: <p>So I was writing a small helper method to convert numbers into a valid money format (<code>$xx,xxx.xx</code>) using <code>.toLocaleString()</code>.  Everything works as expected when using it inside Chrome, however it seems completely broken when using inside Node.js.</p>
  
  <p>Example:</p>
  
  <pre><code>var n = 6000
  console.log( n.toLocaleString('USD', {
    style: 'currency',
    currency: "USD",
    minimumFractionDigits : 2,
    maximumFractionDigits : 2
  }) );
  </code></pre>
  
  <p>If you run this in the browser, it prints <code>$6,000.00</code>.  If you run this snippet inside of Node.js REPL or application, it returns <code>6000</code> as a String.</p>
  
  <p>Guessing this is a bug with Node.js?  Is there a work around you could do here?</p>