Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detect-node

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-node - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc