meteor lint

meteor lint Run through the whole build process for the app and run all linters the app uses. Outputs all build errors or linting warnings to the standard output.

template.lastNode

Client template.lastNode Source The last top-level DOM node in this template instance.

Plugin.registerSourceHandler

Build Plugin Plugin.registerSourceHandler(fileExtension, handler) Inside a build plugin source file specified in Package.registerBuildPlugin, add a handler to compile files with a certain file extension. Arguments fileExtension String The file extension that this plugin should handle, without the first dot. Examples: "coffee", "coffee.md". handler Function A function that takes one argument, a CompileStep object. Documentation for CompileStep is available on the GitHub Wiki.

computation.onStop

Client computation.onStop(callback) Source Registers callback to run when this computation is stopped, or runs it immediately if the computation is already stopped. The callback is run after any onInvalidate callbacks. Arguments callback Function Function to be called on stop. Receives one argument, the computation that was stopped.

App.setPreference

App.setPreference(name, value, [platform]) Add a preference for your build as described in the Cordova documentation. Arguments name String A preference name supported by Cordova's config.xml. value String The value for that preference. platform String Optional. A platform name (either ios or android) to add a platform-specific preference.

Session.setDefault

Client Session.setDefault(key, value) import { Session } from 'meteor/session' Source Set a variable in the session if it hasn't been set before. Otherwise works exactly the same as Session.set. Arguments key String The key to set, eg, selectedItem value EJSON-able Object or undefined The new value for key

audit-argument-checks

audit-argument-checks This package causes Meteor to require that all arguments passed to methods and publish functions are checked. Any method that does not pass each one of its arguments to check will throw an error, which will be logged on the server and which will appear to the client as a 500 Internal server error. This is a simple way to help ensure that your app has complete check coverage. Methods and publish functions that do not need to validate their arguments can simply run check(ar

this.setUserId

Server this.setUserId(userId) Source Set the logged in user. Arguments userId String or null The value that should be returned by userId on this connection.

Accounts.resetPassword

Client Accounts.resetPassword(token, newPassword, [callback]) import { Accounts } from 'meteor/accounts-base' Source Reset the password for a user using a token received in email. Logs the user in afterwards. Arguments token String The token retrieved from the reset password URL. newPassword String A new password for the user. This is not sent in plain text over the wire. callback Function Optional callback. Called with no arguments on success, or with a single Error argument

Introduction

What is Meteor? Meteor is a full-stack JavaScript platform for developing modern web and mobile applications. Meteor includes a key set of technologies for building connected-client reactive applications, a build tool, and a curated set of packages from the Node.js and general JavaScript community. Meteor allows you to develop in one language, JavaScript, in all environments: application server, web browser, and mobile device. Meteor uses data on the wire, meaning the server sends data, not