pax_global_header00006660000000000000000000000064132703625140014515gustar00rootroot0000000000000052 comment=3636fd76cf948ebfc143c1913af6d3c4450b1c46 fs-constants-1.0.0/000077500000000000000000000000001327036251400141355ustar00rootroot00000000000000fs-constants-1.0.0/.gitignore000066400000000000000000000000151327036251400161210ustar00rootroot00000000000000node_modules fs-constants-1.0.0/LICENSE000066400000000000000000000020671327036251400151470ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) 2018 Mathias Buus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. fs-constants-1.0.0/README.md000066400000000000000000000010201327036251400154050ustar00rootroot00000000000000# 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 fs-constants-1.0.0/browser.js000066400000000000000000000000461327036251400161560ustar00rootroot00000000000000module.exports = require('constants') fs-constants-1.0.0/index.js000066400000000000000000000001011327036251400155720ustar00rootroot00000000000000module.exports = require('fs').constants || require('constants') fs-constants-1.0.0/package.json000066400000000000000000000010011327036251400164130ustar00rootroot00000000000000{ "name": "fs-constants", "version": "1.0.0", "description": "Require constants across node and the browser", "main": "index.js", "browser": "browser.js", "dependencies": {}, "devDependencies": {}, "repository": { "type": "git", "url": "https://github.com/mafintosh/fs-constants.git" }, "author": "Mathias Buus (@mafintosh)", "license": "MIT", "bugs": { "url": "https://github.com/mafintosh/fs-constants/issues" }, "homepage": "https://github.com/mafintosh/fs-constants" }