Tracker.nonreactive

Client Tracker.nonreactive(func) import { Tracker } from 'meteor/tracker' Source Run a function without tracking dependencies. Arguments func Function A function to call immediately.

Blaze.renderWithData

Client Blaze.renderWithData(templateOrView, data, parentNode, [nextNode], [parentView]) import { Blaze } from 'meteor/blaze' Source Renders a template or View to DOM nodes with a data context. Otherwise identical to Blaze.render. Arguments templateOrView Blaze.Template or Blaze.View The template (e.g. Template.myTemplate) or View object to render. data Object or Function The data context to use, or a function returning a data context. If a function is provided, it will be reactiv

spiderable

Your JavaScript code can run in two environments: the client (browser), and the server (a Node.js container on a server). For each function in this API reference, we'll indicate if the function is available just on the client, just on the server, or Anywhere. Meteor Core Anywhere Meteor.isClient import { Meteor } from 'meteor/meteor' Source Boolean variable. True if running in client environment. Anywhere Meteor.isServer import { Meteor } from 'meteor/meteor' Source Boolean va

api.use

package.js api.use(packageNames, [architecture], [options]) Depend on package packagename. Arguments packageNames String or Array of Strings Packages being depended on. Package names may be suffixed with an @version tag. In general, you must specify a package's version (e.g., 'accounts@1.0.0' to use version 1.0.0 or a higher compatible version (ex: 1.0.1, 1.5.0, etc.) of the accounts package). If you are sourcing core packages from a Meteor release with versionsFrom, you may leave off

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

Blaze.With

Client Blaze.With(data, contentFunc) import { Blaze } from 'meteor/blaze' Source Constructs a View that renders content with a data context. Arguments data Object or Function An object to use as the data context, or a function returning such an object. If a function is provided, it will be reactively re-run. contentFunc Function A Function that returns renderable content.

Accounts.verifyEmail

Client Accounts.verifyEmail(token, [callback]) import { Accounts } from 'meteor/accounts-base' Source Marks the user's email address as verified. Logs the user in afterwards. Arguments token String The token retrieved from the verification URL. callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure.

Accounts.setPassword

Server Accounts.setPassword(userId, newPassword, [options]) import { Accounts } from 'meteor/accounts-base' Source Forcibly change the password for a user. Arguments userId String The id of the user to update. newPassword String A new password for the user. Options logout Object Logout all current connections with this userId (default: true)

EJSON.fromJSONValue

Anywhere EJSON.fromJSONValue(val) import { EJSON } from 'meteor/ejson' Source Deserialize an EJSON value from its plain JSON representation. Arguments val JSON-compatible Object A value to deserialize into EJSON.

check

Anywhere check(value, pattern) import { check } from 'meteor/check' Source Check that a value matches a pattern. If the value does not match the pattern, throw a Match.Error. Particularly useful to assert that arguments to a function have the right types and structure. Arguments value Any The value to check pattern Match Pattern The pattern to match value against