2013 Meteor NPM Packages

Arunoda has created an NPM Atmosphere package that allows you to use any NPM module like you’re used to. It’s very simple.

First, mrt add npm.

You can also install the package by using meteor-npm command from npm install -g meteor-npm.

Next, make a packages.json file in your root project directory, with the package names and versions:

{
    "foobar": "0.3.5",
    "loremipsum": "2.1.4"
}

Finally, use them with Meteor.require, like this: var FooBar = Meteor.require('foobar');

Leave a Comment