import * as fs from "fs" ; import { callback } from "awaiting" ; function _exists ( path , cb ) { fs . exists ( path , ( exists ) => { cb ( undefined , exists ) ; } ) ; } export async function exists ( path ) { return await callback ( _exists , path ) ; } export async function readFile ( path ) { return await callback ( fs . readFile , path ) ; } export async function unlink ( path ) { return await callback ( fs . unlink , path ) ; }