Meriadec Pillet
6 years ago
committed by
GitHub
5 changed files with 16 additions and 17 deletions
@ -0,0 +1,10 @@ |
|||||
|
// @flow
|
||||
|
|
||||
|
import { promisify } from 'helpers/promise' |
||||
|
import fs from 'fs' |
||||
|
|
||||
|
export const fsReadFile = promisify(fs.readFile) |
||||
|
export const fsReaddir = promisify(fs.readdir) |
||||
|
export const fsWriteFile = promisify(fs.writeFile) |
||||
|
export const fsMkdir = promisify(fs.mkdir) |
||||
|
export const fsUnlink = promisify(fs.unlink) |
Loading…
Reference in new issue