1import { readFileSync, statSync, writeFile } from 'fs';
2import { format } from 'util';
3import { resolve } from 'path';
4export default {
5    fs: {
6        readFileSync,
7        writeFile
8    },
9    format,
10    resolve,
11    exists: (file) => {
12        try {
13            return statSync(file).isFile();
14        }
15        catch (err) {
16            return false;
17        }
18    }
19};
20