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

@babel/plugin-transform-property-literals

Package Overview
Dependencies
Maintainers
4
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-property-literals

Ensure that reserved words are quoted in object property keys

  • 7.21.4-esm
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21M
decreased by-18.75%
Maintainers
4
Weekly downloads
 
Created

What is @babel/plugin-transform-property-literals?

The @babel/plugin-transform-property-literals package is a Babel plugin that transforms object properties to use literals when they are valid identifiers. This transformation can help improve code readability and potentially optimize execution by leveraging engine optimizations for property access.

What are @babel/plugin-transform-property-literals's main functionalities?

Transforming Reserved Word Properties

Transforms reserved word properties into literal properties if they are valid identifiers, ensuring compatibility and potentially improving execution speed.

{"var": "value"} // Before transformation
{"var": "value"} // After transformation

Transforming Numeric Properties

Automatically transforms numeric properties into their literal form, enhancing code readability and leveraging engine optimizations.

{"123": "value"} // Before transformation
{123: "value"} // After transformation

Other packages similar to @babel/plugin-transform-property-literals

Keywords

FAQs

Package last updated on 04 Apr 2023

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