fs-constants
Require constants across node and the browser
Last updated 7 years ago by mafintosh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install fs-constants 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (7 years ago)

1 Versions

  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE