Meteor.release

Anywhere Meteor.release import { Meteor } from 'meteor/meteor' Source Meteor.release is a string containing the name of the release with which the project was built (for example, "1.2.3"). It is undefined if the project was built using a git checkout of Meteor.

Assets.getText

Server Assets.getText(assetPath, [asyncCallback]) Retrieve the contents of the static server asset as a UTF8-encoded string. Arguments assetPath String The path of the asset, relative to the application's private subdirectory. asyncCallback Function Optional callback, which is called asynchronously with the error or result after the function is complete. If not provided, the function runs synchronously.

meteor publish

meteor publish Publishes your package. To publish, you must cd into the package directory, log in with your Meteor Developer Account and run meteor publish. By convention, published package names must begin with the maintainer's Meteor Developer Account username and a colon, like so: iron:router. To publish a package for the first time, use meteor publish --create. Sometimes packages may contain binary code specific to an architecture (for example, they may use an npm package). In that case, ru

HTTP.del

Anywhere HTTP.del(url, [callOptions], [asyncCallback]) import { HTTP } from 'meteor/http' Source Send an HTTP DELETE request. Equivalent to calling HTTP.call with "DELETE" as the first argument. (Named del to avoid conflict with the Javascript keyword delete) Arguments url String The URL to which the request should be sent. callOptions Object Options passed on to HTTP.call. asyncCallback Function Callback that is called when the request is completed. Required on the client.

Blaze.getData

Client Blaze.getData([elementOrView]) import { Blaze } from 'meteor/blaze' Source Returns the current data context, or the data context that was used when rendering a particular DOM element or View from a Meteor template. Arguments elementOrView DOM Element or Blaze.View Optional. An element that was rendered by a Meteor, or a View.

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)

random

random The random package provides several functions for generating random numbers. It uses a cryptographically strong pseudorandom number generator when possible, but falls back to a weaker random number generator when cryptographically strong randomness is not available (on older browsers or on servers that don't have enough entropy to seed the cryptographically strong generator). Random.id([n]) Returns a unique identifier, such as "Jjwjg6gouWLXhMGKW", that is likely to be unique in the whol

Sort specifiers

Sort Specifiers Sorts may be specified using your choice of several syntaxes: // All of these do the same thing (sort in ascending order by // key "a", breaking ties in descending order of key "b") [["a", "asc"], ["b", "desc"]] ["a", ["b", "desc"]] {a: 1, b: -1} The last form will only work if your JavaScript implementation preserves the order of keys in objects. Most do, most of the time, but it's up to you to be sure. For local collections you can pass a comparator function which receives

collection.allow

Server collection.allow(options) Source Allow users to write directly to this collection from client code, subject to limitations you define. Options insert, update, remove Function Functions that look at a proposed modification to the database and return true if it should be allowed. fetch Array of Strings Optional performance enhancement. Limits the fields that will be fetched from the database for inspection by your update and remove functions. transform Function Overrides

AccountsServer#onCreateUser

Server accountsServer.onCreateUser(func) Source Customize new user creation. Arguments func Function Called whenever a new user is created. Return the new user object, or throw an Error to abort the creation.