finki-main
main
|
Last change
on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
377 bytes
|
| Line | |
|---|
| 1 | const fs = require('fs')
|
|---|
| 2 | const promisify = require('@gar/promisify')
|
|---|
| 3 |
|
|---|
| 4 | // this module returns the core fs module wrapped in a proxy that promisifies
|
|---|
| 5 | // method calls within the getter. we keep it in a separate module so that the
|
|---|
| 6 | // overridden methods have a consistent way to get to promisified fs methods
|
|---|
| 7 | // without creating a circular dependency
|
|---|
| 8 | module.exports = promisify(fs)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.