
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
html-element-map
Advanced tools
Look up HTML tag names via HTML Element constructors, and vice versa.
Look up HTML tag names via HTML Element constructors, and vice versa.
byTag
const assert = require('assert');
const byTag = require('html-element-map/byTag');
// or: import byTag from 'html-element-map/byTag';
// or: import { byTag } from 'html-element-map';
assert.deepEqual(
byTag('a'),
[{
constructor: window.HTMLAnchorElement,
constructorName: 'HTMLAnchorElement',
expectedConstructor: window.HTMLAnchorElement,
tag: 'a'
}],
);
byConstructor
const assert = require('assert');
const byConstructor = require('html-element-map/byConstructor');
// or: import byConstructor from 'html-element-map/byConstructor';
// or: import { byConstructor } from 'html-element-map';
assert.deepEqual(
byConstructor(window.HTMLAnchorElement),
[{
constructor: window.HTMLAnchorElement,
constructorName: 'HTMLAnchorElement',
expectedConstructor: window.HTMLAnchorElement,
tag: 'a'
}],
);
byConstructorName
const assert = require('assert');
const byConstructorName = require('html-element-map/byConstructorName');
// or: import byConstructorName from 'html-element-map/byConstructorName';
// or: import { byConstructorName } from 'html-element-map';
assert.deepEqual(
byConstructorName('HTMLAnchorElement'),
[{
constructor: window.HTMLAnchorElement,
constructorName: 'HTMLAnchorElement',
expectedConstructor: window.HTMLAnchorElement,
tag: 'a'
}],
);
v1.3.1 - 2021-05-19
e0e01f1
node/install
instead of node/run
; use codecov
action e28233f
eslint
, @ljharb/eslint-config
, aud
, function.prototype.name
, object-inspect
, tape
e0ae318
array.prototype.filter
instead of array-filter
fda63b9
eslint
, object-inspect
8a542b2
prepublishOnly
script for npm 7+ f5ab052
FAQs
Look up HTML tag names via HTML Element constructors, and vice versa.
The npm package html-element-map receives a total of 1,010,271 weekly downloads. As such, html-element-map popularity was classified as popular.
We found that html-element-map demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.