<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>@muze-nl/metro-hashparams :: MetroJS</title><link>https://metro.muze.nl/packages/metro-hashparams/index.html</link><description>@muze-nl/metro-hashparams npm install @muze-nl/metro-hashparams import * as hashParams from '@muze-nl/metro-hashparams' const url = hashParams.append('https://example.com/#view', { panel: 'settings' }) console.log(url.href) // result: https://example.com/#view?panel=settings Use this package when a browser application needs shareable state in the URL without sending that state to the server as a query string.
Reference See reference.</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://metro.muze.nl/packages/metro-hashparams/index.xml" rel="self" type="application/rss+xml"/><item><title>@muze-nl/metro-hashparams</title><link>https://metro.muze.nl/packages/metro-hashparams/readme/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://metro.muze.nl/packages/metro-hashparams/readme/index.html</guid><description>@muze-nl/metro-hashparams npm install @muze-nl/metro-hashparams import * as hashParams from '@muze-nl/metro-hashparams' const url = hashParams.append('https://example.com/#view', { panel: 'settings' }) console.log(url.href) // result: https://example.com/#view?panel=settings Use this package when a browser application needs shareable state in the URL without sending that state to the server as a query string.
Reference See reference.</description></item><item><title>Reference</title><link>https://metro.muze.nl/packages/metro-hashparams/reference/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://metro.muze.nl/packages/metro-hashparams/reference/index.html</guid><description>@muze-nl/metro-hashparams reference import { parse, append, clear } from '@muze-nl/metro-hashparams' parse(url) const params = parse('https://example.com/#section?tab=profile') console.log(params.get('tab')) Returns a URLSearchParams object for the query part inside the hash. #?foo=bar and #section?foo=bar are recognised.
append(url, params) const next = append('https://example.com/#section', { tab: 'profile' }) console.log(next.href) // https://example.com/#section?tab=profile Returns a Metro URL with params appended to the hash.</description></item></channel></rss>