Map of web namespaces.
ContentsThis is a map of names to namespaces found on the web platforms.
When should I use this?You can use this package if you want to access the XML, HTML, SVG, etc. namespace urls.
InstallThis package is ESM only. In Node.js (version 12.20+, 14.14+, or 16.0+), install with npm:
npm install web-namespaces
In Deno with Skypack:
import {webNamespaces} from 'https://cdn.skypack.dev/web-namespaces@2?dts'
In browsers with Skypack:
<script type="module"> import {webNamespaces} from 'https://cdn.skypack.dev/web-namespaces@2?min' </script>Use
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/' }API
This package exports the following identifiers: webNamespaces
. There is no default export.
webNamespaces
Map of names to namespaces (Record<string, string>
).
This package is fully typed with TypeScript. There are no extra exported types.
CompatibilityThis package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers.
SecurityThis package is safe.
Relatedwooorm/html-tag-names
â list of HTML tag nameswooorm/mathml-tag-names
â list of MathML tag nameswooorm/svg-tag-names
â list of SVG tag nameswooorm/svg-element-attributes
â map of SVG elements to allowed attributeswooorm/html-element-attributes
â map of HTML elements to allowed attributeswooorm/aria-attributes
â list of ARIA attributesYes please! See How to Contribute to Open Source.
LicenseMIT © 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