pax_global_header00006660000000000000000000000064140245226250014514gustar00rootroot0000000000000052 comment=a04ac52015a2052b5006a6f81409fa57987335fb node-react-remove-scroll-0.0.20210318/000077500000000000000000000000001402452262500170625ustar00rootroot00000000000000node-react-remove-scroll-0.0.20210318/LICENSE000066400000000000000000000020541402452262500200700ustar00rootroot00000000000000MIT License Copyright (c) 2017 Ilya Kantor 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. node-react-remove-scroll-0.0.20210318/Readme.md000066400000000000000000000015471402452262500206100ustar00rootroot00000000000000## detect-node > This is a fork of `detect-node`. Differences: - uses named export {isNode} - has d.ts integrated - supports ESM ### Install ```shell npm install --save detect-node-es ``` ### Usage: ```diff -var isNode = require('detect-node'); +var {isNode} = require('detect-node-es'); if (isNode) { console.log("Running under Node.JS"); } else { alert("Hello from browser (or whatever not-a-node env)"); } ``` The check is performed as: ```js module.exports = false; // Only Node.JS has a process variable that is of [[Class]] process try { module.exports = Object.prototype.toString.call(global.process) === '[object process]' } catch(e) {} ``` Thanks to Ingvar Stepanyan for the initial idea. This check is both **the most reliable I could find** and it does not use `process` env directly, which would cause browserify to include it into the build. node-react-remove-scroll-0.0.20210318/es5/000077500000000000000000000000001402452262500175565ustar00rootroot00000000000000node-react-remove-scroll-0.0.20210318/es5/browser.js000066400000000000000000000000401402452262500215710ustar00rootroot00000000000000module.exports.isNode = false; node-react-remove-scroll-0.0.20210318/es5/node.d.ts000066400000000000000000000001421402452262500212720ustar00rootroot00000000000000/** * returns true if the current environment is NodeJS */ export declare const isNode: boolean;node-react-remove-scroll-0.0.20210318/es5/node.js000066400000000000000000000003011402452262500210330ustar00rootroot00000000000000// Only Node.JS has a process variable that is of [[Class]] process module.exports.isNode = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; node-react-remove-scroll-0.0.20210318/esm/000077500000000000000000000000001402452262500176465ustar00rootroot00000000000000node-react-remove-scroll-0.0.20210318/esm/browser.js000066400000000000000000000000361402452262500216660ustar00rootroot00000000000000export const isNode = false; node-react-remove-scroll-0.0.20210318/esm/node.js000066400000000000000000000002771402452262500211370ustar00rootroot00000000000000// Only Node.JS has a process variable that is of [[Class]] process export const isNode = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; node-react-remove-scroll-0.0.20210318/package.json000066400000000000000000000013271402452262500213530ustar00rootroot00000000000000{ "name": "detect-node-es", "version": "1.1.0", "description": "Detect Node.JS (as opposite to browser environment). ESM modification", "main": "es5/node.js", "module": "esm/node.js", "browser": { "./es5/node.js": "./es5/browser.js", "./esm/node.js": "./esm/browser.js" }, "types": "es5/node.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "https://github.com/thekashey/detect-node" }, "keywords": [ "detect", "node" ], "author": "Ilya Kantor", "license": "MIT", "bugs": { "url": "https://github.com/thekashey/detect-node/issues" }, "homepage": "https://github.com/thekashey/detect-node" }