hunk.code_window:   "dependencies": {
       "async": "^1.5.2",
       "cheerio": "^0.19.0",
       "commander": "^2.9.0",
       "electron-packager": "^5.2.1",
       "lodash": "^4.0.0",
       "ncp": "^2.0.0",
       "request": "^2.67.0",
       "sanitize-filename": "^1.5.3",
       "shelljs": "^0.5.3",
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:     "hasbin": "^1.2.0",
  
hunk.file_path: package.json
hunk.type: add
file: var wurl = require('wurl');
  var os = require('os');
  
  function isOSX() {
      return os.platform() === 'darwin';
  }
  
  function linkIsInternal(currentUrl, newUrl) {
      var currentDomain = wurl('domain', currentUrl);
      var newDomain = wurl('domain', newUrl);
      return currentDomain === newDomain;
  }
  
  module.exports = {
      isOSX: isOSX,
      linkIsInternal: linkIsInternal
  };
  