EJSON.equals

Anywhere EJSON.equals(a, b, [options]) import { EJSON } from 'meteor/ejson' Source Return true if a and b are equal to each other. Return false otherwise. Uses the equals method on a if present, otherwise performs a deep comparison. Arguments a EJSON-able Object b EJSON-able Object Options keyOrderSensitive Boolean Compare in key sensitive order, if supported by the JavaScript implementation. For example, {a: 1, b: 2} is equal to {b: 2, a: 1} only when keyOrderSensitive is fa

Meteor.subscribe

Client Meteor.subscribe(name, [arg1, arg2...], [callbacks]) import { Meteor } from 'meteor/meteor' Source Subscribe to a record set. Returns a handle that provides stop() and ready() methods. Arguments name String Name of the subscription. Matches the name of the server's publish() call. arg1, arg2... EJSON-able Object Optional arguments passed to publisher function on server. callbacks Function or Object Optional. May include onStop and onReady callbacks. If there is an erro

api.versionsFrom

package.js api.versionsFrom(meteorRelease) Use versions of core packages from a release. Unless provided, all packages will default to the versions released along with meteorRelease. This will save you from having to figure out the exact versions of the core packages you want to use. For example, if the newest release of meteor is METEOR@0.9.0 and it includes jquery@1.0.0, you can write api.versionsFrom('METEOR@0.9.0') in your package, and when you later write api.use('jquery'), it will b

EJSON.stringify

Anywhere EJSON.stringify(val, [options]) import { EJSON } from 'meteor/ejson' Source Serialize a value to a string. For EJSON values, the serialization fully represents the value. For non-EJSON values, serializes the same way as JSON.stringify. Arguments val EJSON-able Object A value to stringify. Options indent Boolean, Integer, or String Indents objects and arrays for easy readability. When true, indents by 2 spaces; when an integer, indents by that number of spaces; and when

Tracker.autorun

Client Tracker.autorun(runFunc, [options]) import { Tracker } from 'meteor/tracker' Source Run a function now and rerun it later whenever its dependencies change. Returns a Computation object that can be used to stop or observe the rerunning. Arguments runFunc Function The function to run. It receives one argument: the Computation object that will be returned. Options onError Function Optional. The function to run when an error happens in the Computation. The only argument it r

Accounts.sendVerificationEmail

Server Accounts.sendVerificationEmail(userId, [email]) import { Accounts } from 'meteor/accounts-base' Source Send an email with a link the user can use verify their email address. Arguments userId String The id of the user to send email to. email String Optional. Which address of the user's to send the email to. This address must be in the user's emails list. Defaults to the first unverified email in the list.

Meteor.logoutOtherClients

Client Meteor.logoutOtherClients([callback]) import { Meteor } from 'meteor/meteor' Source Log out other clients logged in as the current user, but does not log out the client that calls this function. Arguments callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure.

accounts-ui

accounts-ui A turn-key user interface for Meteor Accounts. To add Accounts and a set of login controls to an application, add the accounts-ui package and at least one login provider package: accounts-password, accounts-facebook, accounts-github, accounts-google, accounts-twitter, or accounts-weibo. Then simply add the {{> loginButtons}} helper to an HTML file. This will place a login widget on the page. If there is only one provider configured and it is an external service, this will add a

Session.equals

Client Session.equals(key, value) import { Session } from 'meteor/session' Source Test if a session variable is equal to a value. If inside a reactive computation, invalidate the computation the next time the variable changes to or from the value. Arguments key String The name of the session variable to test value String, Number, Boolean, null, or undefined The value to test against

meteor run

meteor run Run a meteor development server in the current project. Searches upward from the current directory for the root directory of a Meteor project. Whenever you change any of the application's source files, the changes are automatically detected and applied to the running application. You can use the application by pointing your web browser at localhost:3000. No Internet connection is required. This is the default command. Simply running meteor is the same as meteor run. To pass additiona