import { promisify } from 'util' ; import * as fs from 'fs' ; import _glob from 'glob' ; import * as util from 'util' ; export const glob = promisify ( _glob ) ; export const readFile = ( path ) => { return util . promisify ( fs . readFile ) ( path , { encoding : 'utf-8' } ) ; } ;