Require constants across node and the browser
npm install fs-constantsSmall module that allows you to get the fs constants across
Node and the browser.
```
npm install fs-constants
Previously you would use require('constants') for this in node but that has beenrequire('fs').constants
deprecated and changed to which does not browserify.
This module uses require('constants') in the browser and require('fs').constants in node to work around this
` js
var constants = require('fs-constants')
console.log('constants:', constants)
``
MIT