diff options
Diffstat (limited to 'lib/json/encodeConfig.js')
-rw-r--r-- | lib/json/encodeConfig.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/json/encodeConfig.js b/lib/json/encodeConfig.js new file mode 100644 index 0000000..195d43b --- /dev/null +++ b/lib/json/encodeConfig.js @@ -0,0 +1,12 @@ +/** + Encode configuration to JSON + + @param {Config} + @return {Object} +*/ +function encodeConfig(config) { + var values = config.getValues(); + return values.toJS(); +} + +module.exports = encodeConfig; |