{"_id":"html-element-map","_rev":"362968","name":"html-element-map","description":"Look up HTML tag names via HTML Element constructors, and vice versa.","dist-tags":{"latest":"1.3.1"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2021-07-13T08:57:23.000Z","created":"2019-01-27T08:41:02.267Z","1.3.1":"2021-05-19T16:11:13.494Z","1.3.0":"2021-01-23T14:35:23.888Z","1.2.0":"2019-11-20T06:39:05.352Z","1.1.0":"2019-07-19T05:52:20.229Z","1.0.1":"2019-03-27T20:48:26.268Z","1.0.0":"2019-01-27T08:41:02.267Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ljharb/html-element-map.git"},"versions":{"1.3.1":{"name":"html-element-map","version":"1.3.1","description":"Look up HTML tag names via HTML Element constructors, and vice versa.","main":"index.js","exports":{".":[{"import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js"],"./":"./index.js","./index":"./index.js","./index.js":"./index.js","./byTag":[{"import":"./byTag.mjs","default":"./byTag.js"},"./byTag.js"],"./byTag.js":"./byTag.js","./byConstructor":[{"import":"./byConstructor.mjs","default":"./byConstructor.js"},"./byConstructor.js"],"./byConstructor.js":"./byConstructor.js","./byConstructorName":[{"import":"./byConstructorName.mjs","default":"./byConstructorName.js"},"./byConstructorName.js"],"./byConstructorName.js":"./byConstructorName.js","./getData":"./getData.js","./getData.js":"./getData.js","./package":"./package.json","./package.json":"./package.json","./test":"./test/index.js","./test/":"./test/"},"scripts":{"prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","tests-esm":"nyc node test/index.mjs","test":"npm run tests-only && npm run tests-esm","posttest":"aud --production","lint":"eslint .","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/ljharb/html-element-map.git"},"keywords":["html","element","tag","lookup","html","element","constructor"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/html-element-map/issues"},"homepage":"https://github.com/ljharb/html-element-map#readme","devDependencies":{"@ljharb/eslint-config":"^17.6.0","aud":"^1.1.5","auto-changelog":"^2.2.1","eslint":"^7.26.0","for-each":"^0.3.3","function.prototype.name":"^1.1.4","isarray":"^2.0.5","nyc":"^10.3.2","object-inspect":"^1.10.3","safe-publish-latest":"^1.1.4","tape":"^5.2.2"},"dependencies":{"array.prototype.filter":"^1.0.0","call-bind":"^1.0.2"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"fc5838fe348628f9934cab5dd8df986ff2bf7774","_id":"html-element-map@1.3.1","_nodeVersion":"16.1.0","_npmVersion":"7.11.2","dist":{"shasum":"44b2cbcfa7be7aa4ff59779e47e51012e1c73c08","size":9037,"noattachment":false,"key":"/html-element-map/-/html-element-map-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-element-map/download/html-element-map-1.3.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element-map_1.3.1_1621440673320_0.2248433889676571"},"_hasShrinkwrap":false,"publish_time":1621440673494,"_cnpm_publish_time":1621440673494},"1.3.0":{"name":"html-element-map","version":"1.3.0","description":"Look up HTML tag names via HTML Element constructors, and vice versa.","main":"index.js","exports":{".":[{"import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js"],"./":"./index.js","./index":"./index.js","./index.js":"./index.js","./byTag":[{"import":"./byTag.mjs","default":"./byTag.js"},"./byTag.js"],"./byTag.js":"./byTag.js","./byConstructor":[{"import":"./byConstructor.mjs","default":"./byConstructor.js"},"./byConstructor.js"],"./byConstructor.js":"./byConstructor.js","./byConstructorName":[{"import":"./byConstructorName.mjs","default":"./byConstructorName.js"},"./byConstructorName.js"],"./byConstructorName.js":"./byConstructorName.js","./getData":"./getData.js","./getData.js":"./getData.js","./package":"./package.json","./package.json":"./package.json","./test":"./test/index.js","./test/":"./test/"},"scripts":{"prepublish":"safe-publish-latest","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","tests-esm":"nyc node test/index.mjs","test":"npm run tests-only && npm run tests-esm","posttest":"aud --production","lint":"eslint .","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/ljharb/html-element-map.git"},"keywords":["html","element","tag","lookup","html","element","constructor"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/html-element-map/issues"},"homepage":"https://github.com/ljharb/html-element-map#readme","devDependencies":{"@ljharb/eslint-config":"^17.4.0","aud":"^1.1.3","auto-changelog":"^2.2.1","eslint":"^7.18.0","for-each":"^0.3.3","function.prototype.name":"^1.1.3","isarray":"^2.0.5","nyc":"^10.3.2","object-inspect":"^1.9.0","safe-publish-latest":"^1.1.4","tape":"^5.1.1"},"dependencies":{"array-filter":"^1.0.0","call-bind":"^1.0.2"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"c51bbe843a295c67bec0bda5c9c438e7a4262a6c","_id":"html-element-map@1.3.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"shasum":"fcf226985d7111e6c2b958169312ec750d02f0d3","size":8249,"noattachment":false,"key":"/html-element-map/-/html-element-map-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-element-map/download/html-element-map-1.3.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element-map_1.3.0_1611412523766_0.8330596972587034"},"_hasShrinkwrap":false,"publish_time":1611412523888,"_cnpm_publish_time":1611412523888},"1.2.0":{"name":"html-element-map","version":"1.2.0","description":"Look up HTML tag names via HTML Element constructors, and vice versa.","main":"index.js","scripts":{"pretest":"npm run lint","test":"npm run tests-only","tests-only":"node test","posttest":"npx aud","lint":"eslint .","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/ljharb/html-element-map.git"},"keywords":["html","element","tag","lookup","html","element","constructor"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/html-element-map/issues"},"homepage":"https://github.com/ljharb/html-element-map#readme","devDependencies":{"@ljharb/eslint-config":"^15.0.2","auto-changelog":"^1.16.2","eslint":"^6.6.0","for-each":"^0.3.3","function.prototype.name":"^1.1.1","isarray":"^2.0.5","object-inspect":"^1.7.0","tape":"^4.11.0"},"dependencies":{"array-filter":"^1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"3b90b4e920e5043234a38116b13caaab5129fb9c","_id":"html-element-map@1.2.0","_nodeVersion":"13.1.0","_npmVersion":"6.12.1","dist":{"shasum":"dfbb09efe882806af63d990cf6db37993f099f22","size":6859,"noattachment":false,"key":"/html-element-map/-/html-element-map-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-element-map/download/html-element-map-1.2.0.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element-map_1.2.0_1574231945239_0.6888289119388622"},"_hasShrinkwrap":false,"publish_time":1574231945352,"_cnpm_publish_time":1574231945352},"1.1.0":{"name":"html-element-map","version":"1.1.0","description":"Look up HTML tag names via HTML Element constructors, and vice versa.","main":"index.js","scripts":{"pretest":"npm run lint","test":"npm run tests-only","tests-only":"node test","posttest":"npx aud","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/ljharb/html-element-map.git"},"keywords":["html","element","tag","lookup","html","element","constructor"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/html-element-map/issues"},"homepage":"https://github.com/ljharb/html-element-map#readme","devDependencies":{"@ljharb/eslint-config":"^13.1.1","eslint":"^5.16.0","for-each":"^0.3.3","function.prototype.name":"^1.1.0","isarray":"^2.0.5","object-inspect":"^1.6.0","tape":"^4.11.0"},"dependencies":{"array-filter":"^1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"gitHead":"34ebc933e6165e6c47f2f77388eb3f9885b4b17c","_id":"html-element-map@1.1.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"shasum":"e5aab9a834caf883b421f8bd9eaedcaac887d63c","size":4913,"noattachment":false,"key":"/html-element-map/-/html-element-map-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-element-map/download/html-element-map-1.1.0.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element-map_1.1.0_1563515539948_0.39958969277463696"},"_hasShrinkwrap":false,"publish_time":1563515540229,"_cnpm_publish_time":1563515540229},"1.0.1":{"name":"html-element-map","version":"1.0.1","description":"Look up HTML tag names via HTML Element constructors, and vice versa.","main":"index.js","scripts":{"pretest":"npm run lint","test":"npm run tests-only","tests-only":"node test","posttest":"npx aud","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/ljharb/html-element-map.git"},"keywords":["html","element","tag","lookup","html","element","constructor"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/html-element-map/issues"},"homepage":"https://github.com/ljharb/html-element-map#readme","devDependencies":{"@ljharb/eslint-config":"^13.1.1","eslint":"^5.12.1","for-each":"^0.3.3","function.prototype.name":"^1.1.0","isarray":"^2.0.4","object-inspect":"^1.6.0","tape":"^4.9.2"},"dependencies":{"array-filter":"^1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"gitHead":"174070830c31d86f17a0e80360c919db157394f1","_id":"html-element-map@1.0.1","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","dist":{"shasum":"3c4fcb4874ebddfe4283b51c8994e7713782b592","size":5061,"noattachment":false,"key":"/html-element-map/-/html-element-map-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-element-map/download/html-element-map-1.0.1.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element-map_1.0.1_1553719705565_0.29056153752455915"},"_hasShrinkwrap":false,"publish_time":1553719706268,"_cnpm_publish_time":1553719706268},"1.0.0":{"name":"html-element-map","version":"1.0.0","description":"Look up HTML tag names via HTML Element constructors, and vice versa.","main":"index.js","scripts":{"pretest":"npm run lint","test":"npm run tests-only","tests-only":"node test","posttest":"npm run audit","preaudit":"npm install --package-lock --package-lock-only","audit":"npm audit","postaudit":"rm package-lock.json","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/ljharb/html-element-map.git"},"keywords":["html","element","tag","lookup","html","element","constructor"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/html-element-map/issues"},"homepage":"https://github.com/ljharb/html-element-map#readme","devDependencies":{"@ljharb/eslint-config":"^13.1.1","eslint":"^5.12.1","for-each":"^0.3.3","function.prototype.name":"^1.1.0","isarray":"^2.0.4","object-inspect":"^1.6.0","tape":"^4.9.2"},"dependencies":{"array-filter":"^1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"gitHead":"d0944d1ef92feee9377dc4c42669c431cd3c1bea","_id":"html-element-map@1.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.8.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"19a41940225153ecdfead74f8509154ff1cdc18b","size":5097,"noattachment":false,"key":"/html-element-map/-/html-element-map-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-element-map/download/html-element-map-1.0.0.tgz"},"maintainers":[{"name":"ljharb","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element-map_1.0.0_1548578462066_0.2838913226019586"},"_hasShrinkwrap":false,"publish_time":1548578462267,"_cnpm_publish_time":1548578462267}},"readme":"# html-element-map <sup>[![Version Badge][2]][1]</sup>\nLook up HTML tag names via HTML Element constructors, and vice versa.\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\n## Entry points\n\n### `byTag`\n\n```js\nconst assert = require('assert');\nconst byTag = require('html-element-map/byTag');\n// or: import byTag from 'html-element-map/byTag';\n// or: import { byTag } from 'html-element-map';\n\nassert.deepEqual(\n\t\tbyTag('a'),\n\t\t[{\n\t\t\t\tconstructor: window.HTMLAnchorElement,\n\t\t\t\tconstructorName: 'HTMLAnchorElement',\n\t\t\t\texpectedConstructor: window.HTMLAnchorElement,\n\t\t\t\ttag: 'a'\n\t\t}],\n);\n```\n\n### `byConstructor`\n\n```js\nconst assert = require('assert');\nconst byConstructor = require('html-element-map/byConstructor');\n// or: import byConstructor from 'html-element-map/byConstructor';\n// or: import { byConstructor } from 'html-element-map';\n\nassert.deepEqual(\n\t\tbyConstructor(window.HTMLAnchorElement),\n\t\t[{\n\t\t\t\tconstructor: window.HTMLAnchorElement,\n\t\t\t\tconstructorName: 'HTMLAnchorElement',\n\t\t\t\texpectedConstructor: window.HTMLAnchorElement,\n\t\t\t\ttag: 'a'\n\t\t}],\n);\n```\n\n### `byConstructorName`\n\n```js\nconst assert = require('assert');\nconst byConstructorName = require('html-element-map/byConstructorName');\n// or: import byConstructorName from 'html-element-map/byConstructorName';\n// or: import { byConstructorName } from 'html-element-map';\n\nassert.deepEqual(\n\t\tbyConstructorName('HTMLAnchorElement'),\n\t\t[{\n\t\t\t\tconstructor: window.HTMLAnchorElement,\n\t\t\t\tconstructorName: 'HTMLAnchorElement',\n\t\t\t\texpectedConstructor: window.HTMLAnchorElement,\n\t\t\t\ttag: 'a'\n\t\t}],\n);\n```\n\n[1]: https://npmjs.org/package/html-element-map\n[2]: https://versionbadg.es/ljharb/html-element-map.svg\n[5]: https://david-dm.org/ljharb/html-element-map.svg\n[6]: https://david-dm.org/ljharb/html-element-map\n[7]: https://david-dm.org/ljharb/html-element-map/dev-status.svg\n[8]: https://david-dm.org/ljharb/html-element-map#info=devDependencies\n[11]: https://nodei.co/npm/html-element-map.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/html-element-map.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/html-element-map.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=html-element-map\n[codecov-image]: https://codecov.io/gh/ljharb/html-element-map/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/html-element-map/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/html-element-map\n[actions-url]: https://github.com/ljharb/html-element-map/actions\n","_attachments":{},"homepage":"https://github.com/ljharb/html-element-map#readme","bugs":{"url":"https://github.com/ljharb/html-element-map/issues"},"license":"MIT"}