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

@edemaine/meteor-tracker

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edemaine/meteor-tracker

NPM version of Meteor Tracker, ReactiveVar

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

@edemaine/meteor-tracker

Meteor Tracker is a dependency tracking system from Meteor. Together with Meteor ReactiveVar, it makes it easy to rerun code when dependencies change.

This NPM package @edemaine/meteor-tracker offers a drop-in replacement for the meteor/tracker and meteor/reactive-var modules available in Meteor with the tracker and reactive-var packages, so that it can be used in other JavaScript projects, in particular for testing NPM packages that are intended for Meteor but testing from outside Meteor (e.g. via Jest).

The code consists of a few one-line changes to Meteor's source code (see CHANGE FOR NPM in the code), to make the Node module imports and exports match those in Meteor.

Versions

The intent is to track the latest version of Meteor Tracker. If the latter changes, please open an issue to update this package.

NPM versionMeteor versions
1.0.xtracker 1.2.0
1.1.xtracker 1.2.0, reactive-var 1.0.11

Usage: JavaScript

To install:

npm install meteor-tracker

In your JavaScript code, you can use:

import {Tracker} from '@edemaine/meteor-tracker';
import {ReactiveVar} from '@edemaine/meteor-tracker';

Usage: Jest

To install:

npm install --save-dev meteor-tracker

To use this module for testing in Jest as a substitute for meteor/tracker, add the following to your Jest configuration:

  moduleNameMapper: {
    '^meteor/tracker$': '@edemaine/meteor-tracker',
    '^meteor/reactive-var$': '@edemaine/meteor-tracker',
  },

FAQs

Package last updated on 05 Jan 2022

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