Jake Lacey
Jake Lacey

Reputation: 633

import Meteor and Mongo into an npm package

Like you can use

import { Meteor } from 'meteor/meteor';

and

import { Mongo } from 'meteor/mongo';

within a meteor project.

I'm wondering If there is anyway to add this functionality to an NPM package?

Upvotes: 0

Views: 252

Answers (1)

Anthony Astige
Anthony Astige

Reputation: 1969

If you want to use MongoDB in an NPM project you're better off using something like the NPM mongodb package.

Meteor is working on migrating it's core to NPM, but for the time being sometimes you have to Depend on Atmosphere packages:

Atmosphere packages are packages written specifically for Meteor and have several advantages over npm when used with Meteor. In particular, Atmosphere packages can:

  • Depend on core Meteor packages, such as ddp and blaze
  • ...

Other Sources

Upvotes: 1

Related Questions