budibase/packages/server/runtime_apps/testApp/3-VYAktSELSd/plugins.js

9 lines
222 B
JavaScript

const fs = require("fs");
module.exports = (config) => ({
main: {
outputToFile : ({filename, content}) => {
fs.writeFile(`./tests/.data/${filename}`, content, {encoding:"utf8"});
}
}
})