MCPcopy Create free account
hub / github.com/node-config/node-config / toObject

Method toObject

lib/util.js:815–817  ·  view source on GitHub ↗

* Returns a new deep copy of the current config object, or any part of the config if provided. * * @param {Object} config The part of the config to copy and serialize. * @returns {Object} The cloned config or part of the config

(config)

Source from the content-addressed store, hash-verified

813 * @returns {Object} The cloned config or part of the config
814 */
815 static toObject(config) {
816 return JSON.parse(JSON.stringify(config));
817 }
818
819 /**
820 * Send a message to console.error once

Callers 3

0-util.jsFile · 0.45
loadConfigFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected