web-namespaces
Map of web namespaces
Last updated 7 years ago by wooorm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install web-namespaces 
SYNC missed versions from official npm registry.

web-namespaces

Build Coverage Downloads Size

Map of web namespaces.

Contents

What is this?

This 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.

Install

This 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>).

Types

This package is fully typed with TypeScript. There are no extra exported types.

Compatibility

This 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.

Security

This package is safe.

Related

Contribute

Yes please! See How to Contribute to Open Source.

License

MIT © Titus Wormer

Current Tags

  • 2.0.1                                ...           latest (3 years ago)

8 Versions

  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           4 years ago
  • 1.1.4                                ...           5 years ago
  • 1.1.3                                ...           6 years ago
  • 1.1.2                                ...           7 years ago
  • 1.1.1                                ...           7 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 4
Last Month 0
Dependencies (0)
None
Dev Dependencies (12)

Copyright 2013 - present © cnpmjs.org | Home |