UNPKG

billgates

Version:

Returns if you are using Bill Gates' operating system

22 lines (16 loc) 399 B
#!/usr/bin/env node 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;