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

@ciscospark/common-evented

Package Overview
Dependencies
Maintainers
3
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ciscospark/common-evented

Class property decorator the adds change events to properties

  • 1.52.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
79
decreased by-75.31%
Maintainers
3
Weekly downloads
 
Created
Source

@ciscospark/common-evented

standard-readme compliant

Class property decorator the adds change events to properties

Install

npm install --save @ciscospark/common-evented

Usage


const evented = require(`@ciscospark/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-2018 Cisco and/or its affiliates. All Rights Reserved.

FAQs

Package last updated on 01 May 2019

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