Skip to content

Commit

Permalink
cleaner export
Browse files Browse the repository at this point in the history
  • Loading branch information
bdistin committed Feb 10, 2019
1 parent 1f740b0 commit 398a928
Showing 1 changed file with 37 additions and 27 deletions.
64 changes: 37 additions & 27 deletions src/fs.ts
@@ -1,33 +1,43 @@
import * as fs from 'fs';

export const {
access,
copyFile,
open,
rename,
truncate,
rmdir,
mkdir,
readdir,
readlink,
symlink,
lstat,
stat,
link,
unlink,
chmod,
lchmod,
lchown,
chown,
utimes,
realpath,
mkdtemp,
writeFile,
appendFile,
readFile
} = fs.promises;

export { createReadStream, createWriteStream, unwatchFile, watch, watchFile, Dirent, Stats, ReadStream, WriteStream, constants } from 'fs';
promises: {
access,
copyFile,
open,
rename,
truncate,
rmdir,
mkdir,
readdir,
readlink,
symlink,
lstat,
stat,
link,
unlink,
chmod,
lchmod,
lchown,
chown,
utimes,
realpath,
mkdtemp,
writeFile,
appendFile,
readFile
},
createReadStream,
createWriteStream,
unwatchFile,
watch,
watchFile,
Dirent,
Stats,
ReadStream,
WriteStream,
constants
} = fs;

/* eslint-disable max-len */

Expand Down

0 comments on commit 398a928

Please sign in to comment.