🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

mathml-tag-names

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathml-tag-names

List of known MathML tag names

4.0.0
latest
Source
npm
Version published
Weekly downloads
4.7M
3.11%
Maintainers
1
Weekly downloads
 
Created
Source

mathml-tag-names

Build Coverage Downloads Size

List of known MathML tag names.

Contents

What is this?

This is a list of MathML tag names. It includes all tag names from MathML 1, MathML 2, MathML 3, and MathML 4. The repo includes scripts to regenerate the data from the specs.

When should I use this?

You can use this package when you need to know what tag names are allowed in any version of MathML.

Install

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

npm install mathml-tag-names

In Deno with esm.sh:

import {mathmlTagNames} from 'https://esm.sh/mathml-tag-names@4'

In browsers with esm.sh:

<script type="module">
  import {mathmlTagNames} from 'https://esm.sh/mathml-tag-names@4?bundle'
</script>

Use

import {mathmlTagNames} from 'mathml-tag-names'

console.log(mathmlTagNames.length) // => 201

console.log(mathmlTagNames.slice(0, 10))

Yields:

[
  'abs',
  'and',
  'annotation',
  'annotation-xml',
  'apply',
  'approx',
  'arccos',
  'arccosh',
  'arccot',
  'arccoth'
]

API

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

mathmlTagNames

List of known (lowercase) MathML tag names (ReadonlyArray<string>).

Types

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

Compatibility

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

Security

This package is safe.

Contribute

Yes please! See How to Contribute to Open Source.

License

MIT © Titus Wormer

Keywords

element

FAQs

Package last updated on 17 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts