JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 42
  • Score
    100M100P100Q43029F
  • License MIT

URL parse and build.

Package Exports

  • uupaa.uri.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (uupaa.uri.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

URI.js Build Status

npm

URL parse and build.

This module made of WebModule.

Documentation

Browser, NW.js and Electron

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/URI.js"></script>
<script>
var urlObject = WebModule.URI("http://user:pass@example.com:8080/dir1/dir2/file.ext?a=b;c=d#hash");

// urlObject = {
//     href:       "http://user:pass@example.com:8080/dir1/dir2/file.ext?a=b;c=d#hash",
//     protocol:   "http:",
//     origin:     "http://example.com:8080",
//     host:       "example.com:8080",
//     hostname:   "example.com",
//     port:       "8080",
//     username:   "user",
//     password:   "pass",
//     pathname:   "/dir1/dir2/file.ext",
//     search:     "?a=b;c=d",
//     hash:       "#hash",
//     // --- extras properties ---
//     scheme:     "http:",
//     path:       "/dir1/dir2/file.ext?a=b;c=d",
//     dir:        "/dir1/dir2/",                // [!] has last slash
//     file:       "file.ext",
//     fragment:   "#fragment"
// };

</script>

WebWorkers

importScripts("<module-dir>lib/WebModule.js");
importScripts("<module-dir>lib/URI.js");

Node.js

require("<module-dir>lib/WebModule.js");
require("<module-dir>lib/URI.js");