1 2 3 4 5 6 7 8 9 10 11 12 13 | 'use strict'; module.exports = { addons: { isWin: function() { return process.env.OS && process.env.OS.indexOf('Windows') >= 0; }, isMac: function() { return process.env._system_name && process.env._system_name === 'OSX'; } } }; |