Skip to content


MIT 103 2 6,259
195 (month) Jun 18 2013 0.1.3(2 years ago)
1,173 2 9 MIT
Dec 28 2012 18.0 million (month) 0.6.1(8 months ago)

URI.js is a lightweight JavaScript library for working with URLs and URIs in Node.js and the browser. It provides a simple and consistent interface for parsing, manipulating, and building URLs and URIs.

httptools is a package for parsing and modifying HTTP protocol strings which supports HTTP1.1 and HTTP2 protocol versions.

httptools is a Python binding for the nodejs HTTP parser. The package is available on PyPI: pip install httptools

Example Use

const URI = require('uri-js');

// parse url for values
const parsedUrl = URI.parse("");
/* Output:
    scheme: 'https',
    authority: '',
    path: '/search',
    query: 'q=query+string',
    fragment: 'fragment'

// create url from values
const urlComponents = {
    scheme: 'https',
    authority: '',
    path: '/search',
    query: 'q=query+string',
    fragment: 'fragment'
const url = URI.serialize(urlComponents);
// Output: ''

Alternatives / Similar

Was this page helpful?