const titles = require('../../titles.json') const fs = require('fs') const get_app_path = (title) => { let path titles.forEach((current_title) => { if (current_title.title == title) { if (fs.existsSync(current_title.path)) { path = current_title.path } else { console.log(`file not exists ${current_title.path}`) } } }) return (path) ? path : null } module.exports = { get_app_path }