peerlibrary/meteor-packages

Name: meteor-packages

Owner: PeerLibrary

Description: Client for Meteor Package Server API

Created: 2015-10-23 04:42:33.0

Updated: 2016-05-23 17:41:22.0

Pushed: 2016-04-23 11:26:26.0

Homepage: null

Size: 29

Language: CoffeeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Meteor Packages

Package which provides a client for Meteor Package Server API.

It creates and syncs all data about packages to local MongoDB collections and keeps them in sync.

Adding this package to your Meteor application adds MeteorPackages into the scope.

Both client and server side.

Installation
or add peerlibrary:meteor-packages
Usage

On the server-side, you initialize it like this:

or.startup(function () {
teorPackages.startSyncing();

Initial syncing might take quite some time.

Then you can access collections:

LatestPackages collection is the same as Versions, only that it contains only the latest versions of packages.

Schema of documents is the same as described in the documentation with one exception: in Versions collection, dependencies field is represented as an array of objects where package name is stored as packageName key. This is to support package names with . in the name without any problems.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.