How to use the pkg.resolve function in pkg

To help you get started, we’ve selected a few pkg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github louis-tru / ngui / node_modules / ngui / url.js View on Github external
var search = self._search = value.substr(i);
    i = search.indexOf('#');
    if (i != -1) {
      self._search = search.substr(0, i);
      self._hash = search.substr(i);
    }
  } else {
    i = value.indexOf('#');
    if (i != -1) {
      val = value.substr(0, i);
      self._hash = value.substr(i);
    } else {
      val = value;
    }
  }
  self._value = pkg.resolve(val);
}