code: function environment() {
      var exec = constants_1.ARGV
          .slice(0, 2)
          .map(function (v, i) {
          if (i === 0 && constants_1.EXE_EXP.test(v))
              return;
          var rebased = path_1.relative(constants_2.CWD, v);
          return v.match(/^(\/|([a-zA-Z]:)?\\)/) &&
              rebased.length < v.length ? rebased : v;
      }).join(' ').trim();
      if (constants_1.NODE_PATH !== undefined && constants_1.ARGV[1] === constants_1.NODE_PATH)
          exec = constants_1.NODE_PATH.replace(path_1.dirname(constants_1.EXEC_PATH) + '/', '');
      return {
          CWD: process.cwd(),
          EXEC: exec,
          EXEC_PATH: constants_1.EXEC_PATH || constants_1.ARGV[1],
          NODE_PATH: constants_1.NODE_PATH || constants_1.ARGV[0],
          NODE_ENV: process.env.NODE_ENV,
          HOME_PATH: process.env.HOME,
          PLATFORM: process.platform,
          PKG: findPackage() // NOT bullet proof.
      };
  }
docs: Env Paths
  : Gets paths for the environment including executed path.