leinaD_natipaC
leinaD_natipaC

Reputation: 4457

How do you import 'process' in Meteor?

Meteor currently advises to import everything. Like import Meteor from 'meteor/meteor';.

So if I want to do something like console.log(process.env.MONGO_URL), what should I import?

Bonus question: I can't find the documentation for process, where is it?

Upvotes: 0

Views: 39

Answers (1)

Jankapunkt
Jankapunkt

Reputation: 8423

process is a global object (so no need for import) and only available on the server. It is part of the node environment.

See https://nodejs.org/docs/latest-v8.x/api/process.html

Upvotes: 2

Related Questions