{"_id":"@achmadk/void-elements","_rev":"1-49c08d46c600ebc2ed883dc6ce7e1156","name":"@achmadk/void-elements","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@achmadk/void-elements","version":"1.0.0","description":"\"void-elements\" with TypeScript and ES Module support. Array of \"void elements\" defined by the HTML specification.","main":"index.js","typings":"types.d.ts","jsnext:main":"index.es.js","module":"index.es.js","exports":{".":{"require":"./index.js","import":"./index.es.js"}},"scripts":{"pretest":"node build.js test/latest.js","test":"node test","update":"node build.js index.js index.es.js:es"},"keywords":["html","void-elements","elements"],"author":{"name":"hemanth.hm"},"engines":{"node":">=12.0.0"},"license":"MIT","bugs":{"url":"https://github.com/achmadk/void-elements/issues"},"homepage":"https://github.com/achmadk/void-elements","devDependencies":{"got":"12.0.1","jsdom":"19.0.0"},"gitHead":"b02dcb0bf00d0c56d2a3ec5b894a047ec3c701ca","_id":"@achmadk/void-elements@1.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-y6bPXzDiVfLNLcA9SdNrREJQr4qTHes9BS+kilvTHv9+GDg2WnQdfYUqBON+kpk8kkJOEaTCoutBuEYW47HORg==","shasum":"64707e26d4a18b5b84571ce81b41c3e9a7706d36","tarball":"https://registry.npmjs.org/@achmadk/void-elements/-/void-elements-1.0.0.tgz","fileCount":6,"unpackedSize":3999,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDqq2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3RxAAmseQB+2lAoMyOSBOrozzAtdev93yDm3RMworFqw3ni630CY4\r\nGgos9H+3EH+reyQ9k/g+7cYs9zo++tXcO6m20ODxgqOiLf0zZKM1wCBl5x9M\r\nDS/HiULCP+dBwl265kkhsbCz9KFKoW2/KBL/eS7YXDHTih8MoT6gy8R1FdRp\r\nlvWQ8grmhxVMmWqBe/k7dX0gWaFu3N4Jit/pVwbTDqf5+yD5GJwtlAB0kBqN\r\nFTgoFp/Y6BDtCnsacbxZkGHTWHnNDt47RwPGUQ9hdbk+VQz7U/9NuOKfErek\r\nwIGUEPU5AEH02j18LLnno7oY8/addOuB8ydOOU6nlrWQiR1YZEJEx5DVq2OE\r\nq0RgdkBpN0WsRvxBcQpn5feAk/OrpZwe2tVnn1cipIc8C+wDQ9LfNoKp0O+w\r\ns6Spn9Cw4ikKRvSOUuiCGM0jvw3Ipd5QrF9o9UqU1W7a41BGyMS1YWkOCghE\r\nqetrPmxjW/Jon/4QQK3aD9vehUKK8EkOlioU7p3SXazQY6fhTobGPnCi62bJ\r\nZp0BHoleaeMIzkXx4x4dNdvaSDeZRniyffzpRqU6UUu+5DgbpP2J78vLjTbb\r\nIGLIFMTjrp8MhSD7RpPa90+rIxW2otlBaAa+0FQyT8C7/ombLxZiCeBEDPF0\r\n6r1ZIYHUEaAvOKMJrm3JhJS5J7ZjcB4DOAs=\r\n=o27M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpRHSfBFA73dV2lUMe5g4ANzjHHQZGRwyeVjkgVvLziAiEAysOT021F+r/AmtT8278cvEeSNWtkkNqnoA8yy6B2zQk="}]},"_npmUser":{"name":"achmadkurnianto","email":"achmad.kurnianto@gmail.com"},"directories":{},"maintainers":[{"name":"achmadkurnianto","email":"achmad.kurnianto@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/void-elements_1.0.0_1645128374345_0.5314980599711736"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-17T20:06:14.288Z","1.0.0":"2022-02-17T20:06:14.515Z","modified":"2022-04-04T11:11:02.570Z"},"maintainers":[{"name":"achmadkurnianto","email":"achmad.kurnianto@gmail.com"}],"description":"\"void-elements\" with TypeScript and ES Module support. Array of \"void elements\" defined by the HTML specification.","homepage":"https://github.com/achmadk/void-elements","keywords":["html","void-elements","elements"],"author":{"name":"hemanth.hm"},"bugs":{"url":"https://github.com/achmadk/void-elements/issues"},"license":"MIT","readme":"void-elements\n==============\n\n### :memo: Object of \"void elements\" defined by the HTML Standard\n\nExports an `Object` of \"void element\" node names as defined by the HTML spec.\n\nThe list is programatically generated from the [latest WHATWG HTML Standard](https://html.spec.whatwg.org/multipage/syntax.html#void-elements).\n\n[![npm version](https://img.shields.io/npm/v/void-elements.svg?style=flat)](https://www.npmjs.org/package/@achmadk/void-elements)\n\n:wrench: Usage\n-----\n### 1. node.js\n```js\nconst voidElements = require('@achmadk/void-elements');\n\nassert(!voidElements['span'], '<span> is not a void element');\nassert(voidElements['img'], '<img> is a void element');\n```\n\n### 2. vite js (if have error importing `void-elements`)\n```js\nimport { defineConfig } from 'vite'\n\nexport default defineConfig({\n  // rest of your vite configuration\n  resolve: {\n    alias: [\n      // another aliases\n      {\n        find: 'void-elements',\n        replacement: '@achmadk/void-elements'\n      }\n    ]\n  }\n})\n```\n\nLicense\n-------\n\nMIT\n","readmeFilename":"README.md"}