
Security News
CISA Extends MITRE Contract as Crisis Accelerates Alternative CVE Coordination Efforts
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
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,222,278 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
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.