Skip to content

Instantly share code, notes, and snippets.

@VRMink
Created May 6, 2013 16:19
Show Gist options
  • Save VRMink/5526169 to your computer and use it in GitHub Desktop.
Save VRMink/5526169 to your computer and use it in GitHub Desktop.
Idea for a fallback library
fallback.json
-------
{
email: '[email protected]',
disk: '/var/log/failure/marshalled'
}
Node code
-------
var fallback = require('fallback');
var mongoose = require('mongoose');
var fluffy = new Kitten({ name: 'fluffy' });
fallback.fluffy.save(function (err, fluffy) {
if (err) // DevOps will know about this
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment