UNPKG

383 BJavaScriptView Raw
1/**
2 * This is meant to wrap configuration objects that should be left as is,
3 * meaning that the object or its protoype will not be modified in any way
4 */
5function RawConfig () {
6}
7
8function raw(rawObj) {
9 var obj = Object.create(RawConfig.prototype);
10 obj.resolve = function () { return rawObj; }
11 return obj;
12}
13
14module.exports.RawConfig = RawConfig;
15module.exports.raw = raw;