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

trackr

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trackr

A fork of Meteor Tracker.

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

Trackr

This is a fork of Meteor Tracker, the library formerly known as Meteor Deps. It has been repackaged into a standalone library that is ready to use in Node.js and the browser.

Trackr's API is almost identical to Meteor's version. Check out their documentation on Tracker and Using Deps since they are both fully relevant.

The only change that has been made is the addition of function context. Method context (this) can be added as an optional argument to the end of methods that accept functions. For example, here is how you would use autorun() with context:

var ctx = { foo: "bar" };

Trackr.autorun(function() {
    console.log(this.foo); // "bar"
}, ctx);

This also works for onInvalidate() and afterFlush() callbacks. onInvalidate() will fallback on the context provided to the computation if none is provided.

Keywords

FAQs

Package last updated on 01 Mar 2015

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