A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/wooorm/web-namespaces below:

wooorm/web-namespaces: Map of web namespaces

Map of web namespaces.

This is a map of names to namespaces found on the web platforms.

You can use this package if you want to access the XML, HTML, SVG, etc. namespace urls.

This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:

npm install web-namespaces

In Deno with esm.sh:

import {webNamespaces} from 'https://esm.sh/web-namespaces@2'

In browsers with esm.sh:

<script type="module">
  import {webNamespaces} from 'https://esm.sh/web-namespaces@2?bundle'
</script>
import {webNamespaces} from 'web-namespaces'

console.log(webNamespaces)

Yields:

{
  html: 'http://www.w3.org/1999/xhtml',
  mathml: 'http://www.w3.org/1998/Math/MathML',
  svg: 'http://www.w3.org/2000/svg',
  xlink: 'http://www.w3.org/1999/xlink',
  xml: 'http://www.w3.org/XML/1998/namespace',
  xmlns: 'http://www.w3.org/2000/xmlns/'
}

This package exports the identifier webNamespaces. There is no default export.

Map of names to namespaces (Record<string, string>).

This package is fully typed with TypeScript. It exports no additional types.

This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.

This package is safe.

Yes please! See How to Contribute to Open Source.

MIT © Titus Wormer


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4