raw.js 384 B

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