{"library":"resolve-pathname","type":"library","category":null,"description":"The `resolve-pathname` package, currently at stable version 3.0.0, offers a pure JavaScript implementation for resolving URL pathnames. Its core purpose is to replicate the exact pathname resolution behavior found in web browsers when processing the `href` attribute of an `<a>` tag. This utility is distinct from Node.js's `url.resolve`, which handles full URLs, and from other browser-specific solutions like `resolve-url` that may have DOM dependencies. It prides itself on 100% compatibility with browser pathname resolution rules without relying on a DOM environment. The package is typically very stable with an infrequent release cadence for major versions, indicating a mature and well-tested codebase. It is suitable for both Node.js and browser environments, with ESM, CommonJS, and UMD builds available.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript"],"install":[{"cmd":"npm install resolve-pathname","imports":["import resolvePathname from 'resolve-pathname';","const resolvePathname = require('resolve-pathname');","window.resolvePathname;"]},{"cmd":"yarn add resolve-pathname","imports":[]},{"cmd":"pnpm add resolve-pathname","imports":[]}],"homepage":null,"github":"https://github.com/mjackson/resolve-pathname","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/resolve-pathname","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/resolve-pathname/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}