Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

@putout/plugin-apply-nullish-coalescing

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

@putout/plugin-apply-nullish-coalescing

putout plugin add ability to apply nullish coalescing operator (??)

    1.0.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
816
increased by32.25%

Weekly downloads

Readme

Source

putout-plugin-apply-nullish-coalescing NPM version Dependency Status

putout plugin apply optional chaining.

Install

npm i @putout/plugin-apply-nullish-coalescing

Rule

{ "rules": { "apply-nullish-coalescing": true } }

❌ Incorrect code example

result = result || 'hello'; result = typeof result === 'undefined' ? 'hello': result;

✅ Correct code Example

const result = result ?? 'hello';

License

MIT

Keywords

FAQs

Last updated on 09 Feb 2020

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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