is-core-module
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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 |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2238
3