UNPKG

mediacentral-publish

Version:

A publish tool for publishing cloud-ux projects

10 lines (9 loc) 382 B
const fsEx = require('fs-extra'), fs = require('fs'); module.exports = { existsPromise: f => new Promise(r => r(fs.existsSync(f))), readFilePromise: (f, o) => new Promise(r => r(fs.readFileSync(f, o))), removePromise: f => new Promise(r => r(fsEx.removeSync(f))), mkdirPromise: (f, o) => new Promise(r => r(fs.mkdirSync(f, o))), copyFileSync: fs.copyFileSync };