Socket
Socket
Sign inDemoInstall

domconstants

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    domconstants

Commonly used DOM constants for various projects.


Version published
Weekly downloads
3.2K
decreased by-11.24%
Maintainers
1
Install size
6.38 kB
Created
Weekly downloads
 

Readme

Source

domconstants

Commonly used DOM constants for various projects.

export {
  ELEMENT_NODE,             // Node.ELEMENT_NODE
  ATTRIBUTE_NODE,           // Node.ATTRIBUTE_NODE
  TEXT_NODE,                // Node.TEXT_NODE
  COMMENT_NODE,             // Node.COMMENT_NODE
  DOCUMENT_NODE,            // Node.DOCUMENT_NODE
  DOCUMENT_TYPE_NODE,       // Node.DOCUMENT_TYPE_NODE
  DOCUMENT_FRAGMENT_NODE,   // Node.DOCUMENT_FRAGMENT_NODE
  TEXT_ELEMENTS,            // a RegExp matching nodes that need textContent
  VOID_ELEMENTS             // a RegExp of all void elements (i.e. img, input, etc...)
};

Keywords

FAQs

Last updated on 10 Nov 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc