The debugOnly package is a debugOnly package that tells you if you are in debugOnly mode. It drops a debugOnly variable on the client and server that returns true.
First, add the package to your application:
meteor add msavin:debugonly
Then, wrap whatever code you want through a debugOnly check:
if (debugOnly) {
// unleash the hacks!!
}Licensed under MIT license, brought to you by Meteor Toys.