MCPcopy Create free account
hub / github.com/danthareja/node-google-apps-script / getConfig

Function getConfig

lib/manifestor.js:107–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107function getConfig() {
108 return fs.readFileAsync(defaults.CONFIG_NAME)
109 .then(JSON.parse)
110 .catch(SyntaxError, function(err) {
111 console.log('Error parsing config'.red);
112 throw err;
113 })
114 .error(function(err) {
115 console.log('Config does not exist'.red);
116 throw err;
117 });
118}
119
120function setConfig(config) {
121 return fs.writeFileAsync(defaults.CONFIG_NAME, JSON.stringify(config, "", 2))

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected