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

is-property

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-property

Tests if a JSON property can be accessed using . syntax

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.4M
decreased by-0.99%
Maintainers
1
Weekly downloads
 
Created

What is is-property?

The is-property npm package is a utility that checks if a string is a valid JavaScript property name. This can be useful in various scenarios, such as validating object keys or ensuring that dynamically generated property names are valid.

What are is-property's main functionalities?

Check if a string is a valid property name

This feature allows you to check if a given string is a valid JavaScript property name. The first example returns true because 'validPropertyName' is a valid property name, while the second example returns false because '123invalid' is not.

const isProperty = require('is-property');

console.log(isProperty('validPropertyName')); // true
console.log(isProperty('123invalid')); // false

Other packages similar to is-property

Keywords

FAQs

Package last updated on 25 Dec 2014

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