7 lines
228 B
TypeScript
7 lines
228 B
TypeScript
|
import { readFile, writeFile, exists } from 'fs'
|
||
|
import { promisify } from 'util'
|
||
|
|
||
|
export const readFileAsync = promisify(readFile)
|
||
|
export const writeFileAsync = promisify(writeFile)
|
||
|
export const existsAsync = promisify(exists)
|