Template.registerHelper

Client Template.registerHelper(name, function) import { Template } from 'meteor/templating' Source Defines a helper function which can be used from all templates. Arguments name String The name of the helper function you are defining. function Function The helper function itself.

AccountsClient#logoutOtherClients

Client accountsClient.logoutOtherClients([callback]) 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.forgotPassword

Client Accounts.forgotPassword(options, [callback]) import { Accounts } from 'meteor/accounts-base' Source Request a forgot password email. Arguments callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure. Options email String The email address to send a password reset link.

Accounts.onEnrollmentLink

Client Accounts.onEnrollmentLink import { Accounts } from 'meteor/accounts-base' Source Register a function to call when an account enrollment link is clicked in an email sent by Accounts.sendEnrollmentEmail. This function should be called in top-level code, not inside Meteor.startup(). Arguments callback Function The function to call. It is given two arguments: token: A password reset token that can be passed to Accounts.resetPassword to give the newly enrolled account a password.

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

Accounts.createUser

Anywhere Accounts.createUser(options, [callback]) import { Accounts } from 'meteor/accounts-base' Source Create a new user. Arguments callback Function Client only, optional callback. Called with no arguments on success, or with a single Error argument on failure. Options username String A unique name for this user. email String The user's email address. password String The user's password. This is not sent in plain text over the wire. profile Object The user's prof

Template.parentData

Client Template.parentData([numLevels]) import { Template } from 'meteor/templating' Source Accesses other data contexts that enclose the current data context. Arguments numLevels Integer The number of levels beyond the current data context to look. Defaults to 1.

Npm.depends

package.js Npm.depends(dependencies) Specify which NPM packages your Meteor package depends on. Arguments dependencies Object An object where the keys are package names and the values are one of: Version numbers in string form Http(s) URLs to a git commit by SHA. Git URLs in the format described here Https URL example: Npm.depends({ moment: "2.8.3", async: "https://github.com/caolan/async/archive/71fa2638973dafd8761fa5457c472a312cc820fe.tar.gz" }); Git URL example: Npm.depends({

Accounts.sendEnrollmentEmail

Server Accounts.sendEnrollmentEmail(userId, [email]) import { Accounts } from 'meteor/accounts-base' Source Send an email with a link the user can use to set their initial password. 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 email in the list.

Accounts.addEmail

Server Accounts.addEmail(userId, newEmail, [verified]) import { Accounts } from 'meteor/accounts-base' Source Add an email address for a user. Use this instead of directly updating the database. The operation will fail if there is a different user with an email only differing in case. If the specified user has an existing email only differing in case however, we replace it. Arguments userId String The ID of the user to update. newEmail String A new email address for the user. v