MCPcopy Create free account
hub / github.com/argotorg/solidity / writeFilePromise

Function writeFilePromise

test/buglistTests.js:127–134  ·  view source on GitHub ↗
(filename, data)

Source from the content-addressed store, hash-verified

125}
126
127function writeFilePromise(filename, data) {
128 return new Promise(function(resolve, reject) {
129 fs.writeFile(filename, data, 'utf8', function(err) {
130 if (err) reject(err)
131 else resolve(data)
132 })
133 })
134}

Callers 1

checkJsonPathTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected