Alexandro.Net

Version 1.0.0

@stackline/url

The core `url` packaged standalone for use with Browserify.

Independent maintenance of url 0.11.4. Original authors and licenses are retained.

Installation

# Preserve existing imports with an npm alias
npm install url@npm:@stackline/url@1.0.0
# Or use the scoped package name in your imports
npm install @stackline/url@1.0.0

Node.js: >= 0.4. Read the compatibility and maintenance notes before migrating.

Usage and API

The reference below may retain upstream package names. Use the alias installation above to run those imports with this Stackline release.

@stackline/url

Independent maintenance fork of url@0.11.4, preserving its API and published type declarations.

npm install @stackline/url
# Keep existing imports:
npm install url@npm:@stackline/url@1.0.0

Stackline · Issues · Community

See UPSTREAM.md for source identity and issue review, and CHANGELOG.md for maintenance changes. Functional tests also run against the final npm tarball; releases are published from GitHub Actions with provenance.

Upstream documentation

node-url

Build Status

This module has utilities for URL resolution and parsing meant to have feature parity with node.js core url module.

var url = require('url');

api

Parsed URL objects have some or all of the following fields, depending on whether or not they exist in the URL string. Any parts that are not in the URL string will not be in the parsed object. Examples are shown for the URL

'http://user:pass@host.com:8080/p/a/t/h?query=string#hash'

The following methods are provided by the URL module:

url.parse(urlStr, [parseQueryString], [slashesDenoteHost])

Take a URL string, and return an object.

Pass true as the second argument to also parse the query string using the querystring module. Defaults to false.

Pass true as the third argument to treat //foo/bar as { host: 'foo', pathname: '/bar' } rather than { pathname: '//foo/bar' }. Defaults to false.

url.format(urlObj)

Take a parsed URL object, and return a formatted URL string.

url.resolve(from, to)

Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag. Examples:

url.resolve('/one/two/three', 'four')         // '/one/two/four'
url.resolve('http://example.com/', '/one')    // 'http://example.com/one'
url.resolve('http://example.com/one', '/two') // 'http://example.com/two'

Upstream issues and maintenance review

Upstream review

This independent fork preserves the legacy url@0.11.4 API, not the WHATWG URL constructor. Source: https://github.com/defunctzombie/node-url/tree/455a3e2106bf254498615efc50a8dd5527be4132. Original license and authors are retained. The exact npm artifact and file hashes are recorded in .stackline/upstream.json.

Open issue triage

Reviewed the open issue bodies collected on 2026-09-29:

Upstream functional tests and the focused regressions run against source and the final tarball. Full dependency audits, CI, CodeQL, exact artifact/provenance verification and direct/aliased installs gate the GitHub publication. No claims about unsupported APIs or exhaustive historical issue coverage are made.

Release changes

Changelog

1.0.0

Release files and references

Package bytes, npm provenance and the immutable GitHub release were verified for this version. Security checks describe the reviewed release; documented compatibility risks and upstream reports are not blanket claims of resolution.