Socket
Socket
Sign inDemoInstall

@babel/helper-simple-access

Package Overview
Dependencies
4
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-simple-access

Babel helper for ensuring that access to a given value is performed through simple accesses


Version published
Maintainers
4
Weekly downloads
35,141,615
decreased by-1.13%
Install size
2.38 MB

Weekly downloads

Package description

What is @babel/helper-simple-access?

The @babel/helper-simple-access package is designed to simplify the process of accessing properties on objects in a way that is compatible with the latest ECMAScript standards. It is particularly useful when working with Babel, a JavaScript compiler that allows developers to use next-generation JavaScript, today. This helper package provides functionalities to read and write properties in a manner that ensures the correct execution of getters/setters and adherence to the semantics of the ECMAScript specification.

What are @babel/helper-simple-access's main functionalities?

Simplified Property Access

This feature allows for simplified access to object properties, ensuring that any getters/setters are correctly invoked.

import { simpleAccess } from '@babel/helper-simple-access';

const obj = { a: 1 };
simpleAccess(obj, 'a', true); // Simplified way to access property 'a' of obj

Safe Property Modification

Enables safe modification of object properties, ensuring that the property's setter, if any, is correctly invoked.

import { simpleAccess } from '@babel/helper-simple-access';

let obj = { a: 1 };
simpleAccess(obj, 'a', false, 2); // Safely modifies property 'a' of obj to 2

Other packages similar to @babel/helper-simple-access

Changelog

Source

v7.22.5 (2023-06-08)

:bug: Bug Fix
  • babel-preset-env, babel-standalone
    • #15675 Fix using syntax-unicode-sets-regex in standalone (@nicolo-ribaudo)
:nail_care: Polish

Readme

Source

@babel/helper-simple-access

Babel helper for ensuring that access to a given value is performed through simple accesses

See our website @babel/helper-simple-access for more information.

Install

Using npm:

npm install --save @babel/helper-simple-access

or using yarn:

yarn add @babel/helper-simple-access

FAQs

Last updated on 08 Jun 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