UNPKG
proximify
Version:
latest (0.3.0)
0.3.0
0.2.0
0.1.0
Promisify using ES6 Proxy
github.com/laggingreflex/proximify
laggingreflex/proximify
proximify
/
test
/
all.js
11 lines
(9 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
proximify =
require
(
'..'
);
const
fs =
proximify
(
require
(
'fs'
));
module
.
exports
=
async
() => {
try
{
await
fs.
readFileAsync
(
'unknown'
) }
catch
(error) {
if
(error.
code
!==
'ENOENT'
)
throw
error; } }