"void-elements" with TypeScript and ES Module support. Array of "void elements" defined by the HTML specification.
void-elements
==============
Exports an Object of "void element" node names as defined by the HTML spec.
The list is programatically generated from the latest WHATWG HTML Standard.

:wrench: Usage
-----
js
const voidElements = require('@achmadk/void-elements');assert(!voidElements['span'], ' is not a void element');
assert(voidElements['img'], '
is a void element');
`$3
`js
import { defineConfig } from 'vite'export default defineConfig({
// rest of your vite configuration
resolve: {
alias: [
// another aliases
{
find: 'void-elements',
replacement: '@achmadk/void-elements'
}
]
}
})
``License
-------
MIT