Files
med-notes/.pnpm-store/v10/files/d1/3c5d3a813c4306ac57c808c55c3c2f5779370eb266cb174ea90743b766a51f9fed3b3005fb587b32dbd3a4a874e917350b9754e39552545198414360846b19
2025-05-09 05:30:08 +02:00

27 lines
528 B
Plaintext

# fs-constants
Small 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 been
deprecated and changed to `require('fs').constants` which does not browserify.
This module uses `require('constants')` in the browser and `require('fs').constants` in node to work around this
## Usage
``` js
var constants = require('fs-constants')
console.log('constants:', constants)
```
## License
MIT