const fs = require('fs')
try {
const data = fs.readFileSync('/Users/joe/test.txt', 'utf8')
console.log(data)
} catch (err) {
console.error(err)
}
const fs = require('fs')
const data =JSON.parse(fs.readFileSync('../data.json','utf8'))
let values = data.map(el =>{
return `('${el.property}', '${el.property}')`
})
_(fs.readdirSync(baseDir, {withFileTypes: true}))
.filter(dirent => dirent.isDirectory())
.map(dirent => dirent.name)
.concat('.')
.map(directory => path.resolve(baseDir, directory, '.platform.app.yaml'))
.filter(file => fs.existsSync(file))
.map(file => ({data: yamlPlatform.load(fs.readFileSync(file)), file}))
.map(data => ({name: data.data.name, file: data.file, dir: path.dirname(data.file)}))
.value()