{"_id":"is-node-process","_rev":"4-380792a3b8e35f9c5e73c617c40cce83","name":"is-node-process","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"is-node-process","description":"Reliably determines if the code is running in Node.js","version":"1.0.0","main":"lib/index.js","typings":"lib/index.d.ts","license":"MIT","scripts":{"browser":"open test/browser.html","electron":"electron test/fixtures/electron.js","test":"jest","test:react-native":"cd test/fixtures/react-native && yarn test","build":"rollup -c rollup.config.ts","prepublishOnly":"yarn build && yarn test"},"devDependencies":{"@rollup/plugin-node-resolve":"^13.0.2","@types/jest":"^26.0.24","detox":"^18.19.0","electron":"^13.1.7","jest":"^27.0.6","playwright":"^1.12.3","rollup":"^2.53.2","rollup-plugin-typescript2":"^0.30.0","spectron":"^15.0.0","ts-jest":"^27.0.3","typescript":"^4.3.5"},"_id":"is-node-process@1.0.0","dist":{"shasum":"7e3f833139aac65d31d21aca81587d6ccda80a10","integrity":"sha512-m9HTvEwmJx2rf2c8QM26jGVK865A/tYWz+GORRB0ehitPPF/Ajm8yImTRwkEJC7giteusNdgtMEPIeY4alf9Lg==","tarball":"https://registry.npmjs.org/is-node-process/-/is-node-process-1.0.0.tgz","fileCount":6,"unpackedSize":2704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9XukCRA9TVsSAnZWagAAtvcQAJN8O5CoCkouEnkdF25X\nL/PXxh186vgr0vgEQdDKSMblvdyuGO93KhZefrOJStrkEm8POPhhKB2bWq0P\nXgLV7KW7KolNvG9vKuUTWmy8TuRQBpFht5PShcZ166Nz+RQyYF7M09W3MQ4u\n7ZATrJbhXiArYRW1740wF5cz9cjPwqufge1HEJtjl84+ROlcgIfzY2QqEgse\nFG3yd3s4hNP4Drso6KPkLjZdg9R/N1fitujbpT+cfzYeP9hlLDFWiqiYqeiW\nh3wnR4ZPhY94M1X0TcvKEFAtCS4dD+D+BNtaZBqiR4rfLNIKmRa0EYnxxiPO\nfZFYQ1mXPrwA/Xxgbuysm5kU5rhtMJKdP6FMMZW63jZczAgPhHxdb6OPYPt1\nOX4vFk3AWT9wxNP7YFEhmPRvJkNFP7oz2MNVKsRBiO74S8jOjeenJXTcAAU9\n65uapveXUwwpA4LZSoiJPRneL8oQeufiKHU4C6ia1iqrM7Hkh3EloqL9+6ds\nUdrf3g5CjdEI0j6V7ifav7FKcFPtXp0qE0vKm1Qac9hnCaLie8zdIfPPyQ/X\nduzs6diUp4CJ5sSGWcII5w4kd3doTPS3Z7BJqK80wj9scUc+DlHItQQg77FO\n5sa2Euwwql1h+wGcRwPOGxob3RgFX7qaCAyWPU7eZyqZwLZpE75GgwP9QU/b\nuy4K\r\n=hwsS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqCCi3zMMZ/VRhnjt9oYA1hzP1puM+Ya3RvLlY7Zp1kwIgR8qnyIrWgRQl2UE47cT33/voYFsnG1TK4TW26R1deGY="}]},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":"kettanaito@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-node-process_1.0.0_1626700708339_0.35864986975252444"},"_hasShrinkwrap":false},"1.0.1":{"name":"is-node-process","description":"Reliably determines if the code is running in Node.js","version":"1.0.1","main":"lib/index.js","typings":"lib/index.d.ts","license":"MIT","scripts":{"browser":"open test/browser.html","electron":"electron test/fixtures/electron.js","test":"jest","test:react-native":"cd test/fixtures/react-native && yarn test","build":"rollup -c rollup.config.ts","prepublishOnly":"yarn build && yarn test"},"devDependencies":{"@rollup/plugin-node-resolve":"^13.0.2","@types/jest":"^26.0.24","electron":"^13.1.7","jest":"^27.0.6","playwright":"^1.12.3","rollup":"^2.53.2","rollup-plugin-typescript2":"^0.30.0","spectron":"^15.0.0","ts-jest":"^27.0.3","typescript":"^4.3.5"},"_id":"is-node-process@1.0.1","dist":{"shasum":"4fc7ac3a91e8aac58175fe0578abbc56f2831b23","integrity":"sha512-5IcdXuf++TTNt3oGl9EBdkvndXA8gmc4bz/Y+mdEpWh3Mcn/+kOw6hI7LD5CocqJWMzeb0I0ClndRVNdEPuJXQ==","tarball":"https://registry.npmjs.org/is-node-process/-/is-node-process-1.0.1.tgz","fileCount":6,"unpackedSize":2798,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+onkCRA9TVsSAnZWagAAo5UQAIDtMu5JDmgglN0iwUb9\ntAxCdIgNSrXZ18S6j1ZAXVRUI4s943682sMAphNl0ur89grhW+Ee1xT+xdry\n8xL5xLG+SrkRl9dIO4VfdgceXlHGMuhIdg+i2J6LME+rENQRUCGNsua3oafA\nHcn4SuGZOg82htHA/0pxTbmPitz5GwJX9S6zOL8pA7XiVqjBTFFhVBfjKXlo\n90UuX+fRPlYVGr2AJm7W89xhAjEL3Ss+hw3d/qtgZ5CHndA+xga+T0kggHlR\nHkl/SP3W4fS63uxPW+2b8VuJhs12Eb0XC3a+cwkxBV+NgoNk/hpvSNFzaKKY\npMezF98TiFJHJWqgXfQTcSV7VelV3NRqhaZrfW1O2jmLnINRUlwoyO52SIUh\n7QvUc3q1hDvLyAv3SMI+aHdz36CboGj4JMOKPzR6JZW/KBWX8YGNrMdPO49D\nCTzMFivyzW0VRJRnO+PtTZUgpQaiPmnapXAyisLmCUecsxfrTvd2xnmqZVqn\no9d8fSlDyDWihGJdB0fyPQjxgiY5ckf6Z2hFum1mUB+eA+WnCk1CzwnapfMC\nh+g6rg+qY4XFE72tUgrC3ThcM6LZ21Y+ol0xIFEhrLlabTNgrxPefKlsyD5+\nAItQBnIWWvpfkCpfOfspwlXEk2m3n4tcjAtc01g4epwmHUq6AH3Ou9tgokUn\nykZ+\r\n=eyS4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuaLbcjPcDGArQPFhP48vUF41oL0iEP2YCRUt1l1biigIgMx7RAjR5oqXhjFOZPIFrUNs5ObL3RpO969EvzzRsGbE="}]},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":"kettanaito@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-node-process_1.0.1_1627032035996_0.5614490922319704"},"_hasShrinkwrap":false},"1.1.0":{"name":"is-node-process","description":"Reliably determines if the code is running in Node.js","version":"1.1.0","main":"lib/index.js","typings":"lib/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/mswjs/is-node-process.git"},"devDependencies":{"@ossjs/release":"^0.5.1","@rollup/plugin-node-resolve":"^13.0.2","@types/jest":"^26.0.24","@types/node":"^18.14.0","electron":"^19.0.6","jest":"^27.0.6","playwright":"^1.22.2","rollup":"^2.53.2","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^27.0.3","typescript":"^4.3.5"},"scripts":{"browser":"open test/browser.html","electron":"electron test/fixtures/electron.js","test":"jest --testPathIgnorePatterns electron.test.ts","test:react-native":"cd test/fixtures/react-native && pnpm test","build":"rollup -c rollup.config.ts","release":"release publish"},"bugs":{"url":"https://github.com/mswjs/is-node-process/issues"},"homepage":"https://github.com/mswjs/is-node-process#readme","_id":"is-node-process@1.1.0","_integrity":"sha512-gwXjLrk0kVKDpeTbqT1pa2zVjpGie0yixk9XBkFjphGWG8StnfAdG0r7nXqKGHmk1D39p0WTWDYKl4X1qgm30Q==","_resolved":"/tmp/7f7e4f202391b343b75d6e2b5cca942e/is-node-process-1.1.0.tgz","_from":"file:is-node-process-1.1.0.tgz","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-gwXjLrk0kVKDpeTbqT1pa2zVjpGie0yixk9XBkFjphGWG8StnfAdG0r7nXqKGHmk1D39p0WTWDYKl4X1qgm30Q==","shasum":"7221da24ddd5e5dc693ab590aafa4c86e9cd5473","tarball":"https://registry.npmjs.org/is-node-process/-/is-node-process-1.1.0.tgz","fileCount":4,"unpackedSize":3230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqfErkiTHH5Sqo2KqsqeupYRX54C7FQACnYOUwdWQ62gIhAKmeg/wf9UjG/h6lPiD8y5GfLhh7oYMow/OzbqrW4tuE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHH5mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6bxAAookFrUVUwEQCrNKzF6BADfUA9jvwWNJTFYI7CvMFgunmQZ4/\r\niElttvCxJ3RZmehrHX10xMRQ+zDg/KoN/9BAGmgrVCIbiRCgBI2fjS+31pgy\r\nfEX+t98GOmStCrv5l/fFQas8+6IyPJlK0nodW7TdiDhgeqkFScV1fkN96Gbr\r\nXLfGkrcDSdh9FnsSWOZaYJiKyXQWRf6qoRmCKN6VIMQ+ZT8IvY8OK29mKUFH\r\nFuK5npVR/hNQ/lsLx1A1mTcVQBNxMYXCgAKNySLSoVSglqlEhHmJ7leHydM9\r\nXoM3tZVoCgbV0WzIcThwwtmNHt4E8c5TnZNor8c40qQNbaTbpE0PlN5OQEwz\r\nDMlBrGRz5jf7HvUV24jsubzO9BUgqO4jqd603/8+sWVMCVSg4Uvaf9J6CzcE\r\nAi4W27npGBeHsp2OHEzmAZxhmYraIm9cQtV1ad4VOWc8MmK++K1UgKq39TkI\r\nlZQ3w/+nInx37vdJLWKSYLS0MqFabN9zuTRPde2Y08SWacdVy4BuxXim96bq\r\nYme2nWuAKnRAlhGv9zLSEoHOthDZoapJRwqvHtn8olxbMzGd1FpRQ5F8jqcM\r\nkhm1u+rJxRLU2dGvhBlWwFNZzNmdYamvXd9+ILZvb/HIrozC9XVJ4aFXc1B1\r\ncXUaTdyNv4NBRIsjExxvbC2Xb58OjDyEoCM=\r\n=2bLi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":"kettanaito@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-node-process_1.1.0_1679588966251_0.08336500739420538"},"_hasShrinkwrap":false},"1.2.0":{"name":"is-node-process","description":"Reliably determines if the code is running in Node.js","version":"1.2.0","main":"lib/index.js","module":"lib/index.mjs","typings":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","require":"./lib/index.js","default":"./lib/index.mjs"}},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mswjs/is-node-process.git"},"devDependencies":{"@ossjs/release":"^0.5.1","@types/jest":"^27.0.0","@types/node":"^18.14.0","electron":"^19.0.6","jest":"^27.0.6","playwright":"^1.22.2","spectron":"^15.0.0","ts-jest":"^27.0.3","tsup":"^6.2.3","typescript":"^4.3.5"},"scripts":{"browser":"open test/browser.html","electron":"electron test/fixtures/electron.js","test":"jest --testPathIgnorePatterns electron.test.ts","test:react-native":"cd test/fixtures/react-native && pnpm test","build":"tsup","release":"release publish"},"bugs":{"url":"https://github.com/mswjs/is-node-process/issues"},"homepage":"https://github.com/mswjs/is-node-process#readme","_id":"is-node-process@1.2.0","_integrity":"sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==","_resolved":"/tmp/6f88e60b7b77b70245d074f88c8cc743/is-node-process-1.2.0.tgz","_from":"file:is-node-process-1.2.0.tgz","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==","shasum":"ea02a1b90ddb3934a19aea414e88edef7e11d134","tarball":"https://registry.npmjs.org/is-node-process/-/is-node-process-1.2.0.tgz","fileCount":7,"unpackedSize":5984,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMXzvq/2KU3w45r3SLaNkC3OBfL1tzG1XuXP1HRqrVRgIgJSt1i46bjSS0s7L6f07IGdyeAr0vSGr/b9uYny3VH+4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHIGuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxlhAAlwkgJQ4Tdbbe+aZ9ALPtYGhwQDF65otXcvC9r/T4ePxQWhkd\r\nso08brJzqsPD03BYKzoEfSCDIl3PPJEzQq6mL3CYdaaAM14R0glfOvJbZrso\r\nhoM2gBybiPnwJD1hrA8TZfdeLaO7dy9gLyNFijodswW4xLEy5ILdjCZDuCJt\r\nhHFtV2sPztv6l7Z7oAQsc18Cct9xdrK/G348XjzaFWLZH/BVRHjl9zZDzlFe\r\nqAPCSxz2A5FVPxZKwzA2Mc7K5zO3FJYrpsJ3rDjNvfXiUe3oVLsSxsKClEQ6\r\nwxcsl5R60DsGPFCf1QDSUY7yFoCFUYZ/pYbAEAlswrb02n0AMXn3oN98hgdA\r\nK50WKaFtJDjreo7ORRYaDJ/w0fZ5e0HCglZJZi/ZfdfTmBu/WKnrxiHXZ8QU\r\nmat9tECZIjDaRNMxIZqLJStSeof3JICcGh7Qse/09E0IA0LhvO6WAu7SEXhQ\r\nDwNEpiq7uVYuk0ZFmRVMb7vYBlnT69ahZXTMLDVjLJx20Q0uwHJvWFdGRR6E\r\nZWClZv9ViYyyHjg/KuYPDEVuNYpPsoe7LXPYuMoveGJguYQbNkBrFbqhaXhj\r\njeWiNFjtYbtMnFRYpzZZa0H6AvgVY9anUksZcUB0KTtwuGS/6VFUaeivKNlG\r\nYKphCjPBAsgPLzqBlUOZJWHubvgXRCJMkqs=\r\n=tpP5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":"kettanaito@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-node-process_1.2.0_1679589806456_0.2527080801671431"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-19T13:18:28.338Z","1.0.0":"2021-07-19T13:18:28.475Z","modified":"2023-03-23T16:43:26.794Z","1.0.1":"2021-07-23T09:20:36.139Z","1.1.0":"2023-03-23T16:29:26.457Z","1.2.0":"2023-03-23T16:43:26.667Z"},"maintainers":[{"name":"kettanaito","email":"kettanaito@gmail.com"}],"description":"Reliably determines if the code is running in Node.js","license":"MIT","readme":"[![Package version](https://img.shields.io/npm/v/is-node-process.svg)](https://www.npmjs.com/package/is-node-process)\n\n# `is-node-process`\n\nReliably determines if the code is running in Node.js\n\n## Motivation\n\nThis library was created to provide a reliable way of determining a Node.js process, taking into account:\n\n- Browser-like environments (JSDOM);\n- Electron renderer process;\n- React Native runtime.\n\n### Why relying on `window` is a bad idea\n\nThere are environments (i.e. JSDOM) that polyfill the global `window` object and some of its API for the sake of emulating browser-like behaviors, while still remaining a Node.js process.\n\n### Why relying on `process` is a bad idea\n\nElectron injects a global `process` object in the browser runtime when run with the `nodeIntegration: true` option.\n\n## Getting started\n\n```sh\n$ npm install is-node-process\n# or\n$ yarn add is-node-process\n```\n\n```js\n// any/code.js\nconst { isNodeProcess } = require('is-node-process')\nisNodeProcess() // true/false\n```\n","readmeFilename":"README.md","homepage":"https://github.com/mswjs/is-node-process#readme","repository":{"type":"git","url":"git+https://github.com/mswjs/is-node-process.git"},"bugs":{"url":"https://github.com/mswjs/is-node-process/issues"}}