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

property-information

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

property-information

Information for HTML properties

  • 6.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.4M
decreased by-15.59%
Maintainers
1
Weekly downloads
 
Created

What is property-information?

The property-information npm package provides utilities for working with HTML and SVG properties, attributes, and their corresponding information. It helps in understanding the relationships between properties and attributes, and how they should be used in the context of HTML and SVG elements.

What are property-information's main functionalities?

Get Property Information

This feature allows you to retrieve detailed information about a specific property or attribute. In this example, we are fetching information about the 'className' property.

const propertyInformation = require('property-information');
const info = propertyInformation.find('className');
console.log(info);

Check if Property is Boolean

This feature helps you determine if a property is a boolean attribute. In this example, we check if the 'checked' property is a boolean.

const propertyInformation = require('property-information');
const isBoolean = propertyInformation.boolean.includes('checked');
console.log(isBoolean);

Get All Properties for a Specific Element

This feature provides all properties and attributes for HTML elements. In this example, we retrieve all properties related to HTML elements.

const propertyInformation = require('property-information');
const properties = propertyInformation.html;
console.log(properties);

Other packages similar to property-information

Keywords

FAQs

Package last updated on 01 May 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc