import * as fs from 'fs' ; import { promisify } from 'util' ; export const exists = fs . existsSync ; export const list = promisify ( fs . readdir ) ; export const write = promisify ( fs . writeFile ) ; export const read = promisify ( fs . readFile ) ; export const lstat = promisify ( fs . lstat ) ;