blob: 90785d0dd78e456b9b1f4f139cb49548c1d4160f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import {promisify} from '@0xproject/utils';
import * as fs from 'fs';
export const fsWrapper = {
readdirAsync: promisify<string[]>(fs.readdir),
readFileAsync: promisify<string>(fs.readFile),
writeFileAsync: promisify<undefined>(fs.writeFile),
mkdirAsync: promisify<undefined>(fs.mkdir),
doesPathExistSync: fs.existsSync,
removeFileAsync: promisify<undefined>(fs.unlink),
};
|