Socket
Socket
Sign inDemoInstall

@webex/common-evented

Package Overview
Dependencies
12
Maintainers
0
Versions
1175
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @webex/common-evented

Class property decorator the adds change events to properties


Version published
Weekly downloads
3.4K
increased by65.72%
Maintainers
0
Created
Weekly downloads
 

Readme

Source

@webex/common-evented

standard-readme compliant

Class property decorator the adds change events to properties

Install

npm install --save @webex/common-evented

Usage

const evented = require(`@webex/common-evented`);
const Events = require(`ampersand-events`);

class X extends Events {
  @evented
  prop = null;
}

const x = new X();
x.on(`change:prop`, () => {
  console.log(x.prop);
  // => 6
});
x.prop = 6;

Maintainers

This package is maintained by Cisco Webex for Developers.

Contribute

Pull requests welcome. Please see CONTRIBUTING.md for more details.

License

© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.

FAQs

Last updated on 28 Jun 2024

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc