budibase/packages/server/runtime_apps/testApp/3-M8CjoLngYZw/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"});
}
}
})