Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

void-elements

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

void-elements - npm Package Compare versions

Comparing version 0.1.1 to 1.0.0

LICENSE

8

package.json
{
"name": "void-elements",
"version": "0.1.1",
"version": "1.0.0",
"description": "Array of \"void elements\" defined by the HTML specification.",
"main": "index.js",
"scripts": {
"test": "mocha test.js",
"preinstall": "npm install cheerio superagent && node pre-install.js > index.js"
"test": "node test",
"prepublish": "node pre-publish.js > index.js"
},

@@ -25,3 +25,3 @@ "keywords": [

"homepage": "https://github.com/hemanth/void-elements",
"dependencies": {
"devDependencies": {
"cheerio": "^0.17.0",

@@ -28,0 +28,0 @@ "superagent": "^0.18.2"

void-elements
==============
### Array of "void elements" defined by the HTML specification

@@ -8,1 +9,20 @@

The list is programatically generated from [SPEC](http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements).
[![Build Status](https://img.shields.io/travis/hemanth/void-elements/master.svg)](https://travis-ci.org/hemanth/void-elements)
[![Dependency Status](https://img.shields.io/gemnasium/hemanth/void-elements.svg)](https://gemnasium.com/hemanth/void-elements)
[![NPM version](https://img.shields.io/npm/v/void-elements.svg)](https://www.npmjs.org/package/void-elements)
Usage
-----
```js
var voidElements = require('void-elements');
assert(voidElements.indexOf('span') === -1, '<span> is not a void element');
assert(voidElements.indexOf('img') !== -1, '<img> is a void element');
```
License
-------
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc