You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 528B

1234567891011121314151617181920212223242526
  1. # fs-constants
  2. Small module that allows you to get the fs constants across
  3. Node and the browser.
  4. ```
  5. npm install fs-constants
  6. ```
  7. Previously you would use `require('constants')` for this in node but that has been
  8. deprecated and changed to `require('fs').constants` which does not browserify.
  9. This module uses `require('constants')` in the browser and `require('fs').constants` in node to work around this
  10. ## Usage
  11. ``` js
  12. var constants = require('fs-constants')
  13. console.log('constants:', constants)
  14. ```
  15. ## License
  16. MIT