python-archieve-projects/WechatBot/node_modules/fs-constants
Lee2vv 0b82373111 init 2024-05-05 13:46:50 +08:00
..
LICENSE Backup 2023-08-18 21:52:54 +08:00
README.md Backup 2023-08-18 21:52:54 +08:00
browser.js init 2024-05-05 13:46:50 +08:00
index.js init 2024-05-05 13:46:50 +08:00
package.json Backup 2023-08-18 21:52:54 +08:00

README.md

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

var constants = require('fs-constants')

console.log('constants:', constants)

License

MIT