Skip to content

Meteor method that allows you to run arbitrary code on the server

Notifications You must be signed in to change notification settings

xolvio/meteor-backdoor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor Backdoor by Xolv.io

This is a test package that allows you to run run arbitrary code on the server using a Meteor method. It is used by Chimp to allow you to do integration testing from within step definitions / specs.

var result = Meteor.call('xolvio/backdoor', function(setting) {
  return Meteor.settings[setting]; // you can return complex objects
}, 'someSetting');

console.log(result.value); // this will output Meteor.settings.someSetting 

// if there is an error, you can access these properties on the error object
console.log(result.error.message);  
console.log(result.error.stack);

You can also use the package for any hacking you might want to do. This package is a debugOnly package which means it will not get deployed to production. If you remove this flag, beware that it's a very dangerous package as it allows FULL unrestricted access to your backend, which means your database.

Installation

Package is hosted in atmospherejs, to install type:

meteor add xolvio:backdoor

About

Meteor method that allows you to run arbitrary code on the server

Resources

Stars

Watchers

Forks

Packages

No packages published