All files / piscosour/plugins/os index.js

0% Statements 0/3
0% Branches 0/4
0% Functions 0/2
0% Lines 0/3
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';
    }
  }
};