Skip to content

Instantly share code, notes, and snippets.

@jewel-andraia
Created July 5, 2015 22:00
Show Gist options
  • Save jewel-andraia/9a226f6bc5fcf290d4da to your computer and use it in GitHub Desktop.
Save jewel-andraia/9a226f6bc5fcf290d4da to your computer and use it in GitHub Desktop.
Export custom RES settings
Object.getOwnPropertyNames(modules)
.filter(function(moduleID) {
var options = (options = modules[moduleID]) && options.options;
if (options && Object.getOwnPropertyNames(options).some(function(key) {
var option = options[key]; return option.length || option.value != option.default;
})) {
return true;
}
})
.forEach(function(moduleID) {
console.log("RESStorage update", moduleID);
console.log(JSON.stringify(modules[moduleID].options));
})
@jewel-andraia
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment