billgates
Advanced tools
Comparing version 1.0.2 to 1.0.3
#!/usr/bin/env node | ||
module.exports = process.platform == 'win32'; | ||
function BillGates () { | ||
if (!this) return new BillGates; | ||
} | ||
BillGates.prototype.isRich = function isBillGatesRich () { | ||
return true; | ||
} | ||
BillGates.prototype.isWindows = function amIRunningWindows () { | ||
return process.platform === 'win32'; | ||
} | ||
for (const n in BillGates.prototype) { | ||
if (!BillGates[n]) { | ||
BillGates[n] = BillGates.prototype[n]; | ||
} | ||
} | ||
module.exports = BillGates; |
{ | ||
"name": "billgates", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Returns if you are using Bill Gates' operating system", | ||
@@ -5,0 +5,0 @@ "main": "billgates.js", |
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
820
16
0