Defining public Constants file in node.js
<p>I am trying to create a single file to contain all Constants.</p>

<p>Here is my constants.js module:</p>

<pre><code>module.exports.TRIP_STATUS = Object.freeze({   
  TRIP_STAUTS_INITIATED         : 1000,
  TRIP_STAUTS_PENDING_PRE_INSP  : 1001,
  TRIP_STAUTS_ACTIVE            : 1002,
  TRIP_STAUTS_PENDING_POST_INSP : 1003,
  TRIP_STAUTS_DONE              : 1004,
  TRIP_STAUTS_UNKNOWN           : 1005
});
</code></pre>

<p>In my main index.js i am trying to do something like</p>

<pre><code>var Constants = require('constants');
console.log(Constants.TRIP_STAUTS_INITIATED);
</code></pre>

<p>However its not reading the enum.</p>

<p>What is wrong my code?</p>