Socket
Socket
Sign inDemoInstall

babel-plugin-minify-object-property

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-minify-object-property

minify object property


Version published
Weekly downloads
1
Maintainers
1
Install size
3.23 kB
Created
Weekly downloads
 

Readme

Source

babel-plugin-minify-object-property

Extract direct object property value

Example

in

if ({ isWeb: false, isWechat: !0 }.isWeb) {
  console.log(1);
}

out

if (false) {
  console.log(1);
}

Installation

npm install babel-plugin-minify-object-property --save-dev

Suggestion

Used with babel-plugin-minify-dead-code-elimination

FAQs

Last updated on 23 Mar 2020

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