Socket
Socket
Sign inDemoInstall

detect-node

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

7

index.js

@@ -1,1 +0,6 @@

module.exports = Object.prototype.toString.call( (global || window).process ) === '[object process]' ? true : false;
module.exports = false;
// Only Node.JS has a process variable that is of [[Class]] process
try {
module.exports = Object.prototype.toString.call(process) === '[object process]'
} catch(e) {}

2

package.json
{
"name": "detect-node",
"version": "2.0.0",
"version": "2.0.1",
"description": "Detect Node.JS (as opposite to browser environment) (reliable)",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc