Socket
Socket
Sign inDemoInstall

is-core-module

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

4

index.js

@@ -1,5 +0,3 @@

var modules = Object.keys(process.binding('natives'));
module.exports = function(packageName) {
return !!~modules.indexOf(packageName);
return !!~Object.keys(process.binding('natives')).indexOf(packageName);
}
{
"name": "is-core-module",
"version": "1.0.1",
"version": "1.0.2",
"description": "check if packageName is a core module",

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

@@ -8,3 +8,3 @@ # is-core-module

Look at the source, you probably just want to use that function.
Look at the source, you probably just want to use that function. I just can't ever remember it.

@@ -11,0 +11,0 @@ # Usage

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