JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 84
  • Score
    100M100P100Q87626F
  • License UNLICENSED

A small very fast, dependency free url parser for nodejs and the web written in 12 lines of code

Package Exports

  • urlite

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 (urlite) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

urlite

A small very fast, dependency free url parser for nodejs and the web

  • Written in 12 lines of code
  • Unit tested
  • About 15x faster than node's native url parser
  • Runs both in node and the browser

usage:

npm install --save urlite

var url = require('urlite')

url.parse('http://user:pass@blah.com:3000/path?query=string#fragment')
// -> { auth, hash, host, protocol ...}

properties:

  • auth
  • hash
  • host
  • hostname
  • href
  • path
  • pathname
  • port
  • protocol
  • query
  • search