Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
576 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.stat = exports.readFile = void 0;
|
---|
7 |
|
---|
8 | function _fs() {
|
---|
9 | const data = require("fs");
|
---|
10 |
|
---|
11 | _fs = function () {
|
---|
12 | return data;
|
---|
13 | };
|
---|
14 |
|
---|
15 | return data;
|
---|
16 | }
|
---|
17 |
|
---|
18 | function _gensync() {
|
---|
19 | const data = require("gensync");
|
---|
20 |
|
---|
21 | _gensync = function () {
|
---|
22 | return data;
|
---|
23 | };
|
---|
24 |
|
---|
25 | return data;
|
---|
26 | }
|
---|
27 |
|
---|
28 | const readFile = _gensync()({
|
---|
29 | sync: _fs().readFileSync,
|
---|
30 | errback: _fs().readFile
|
---|
31 | });
|
---|
32 |
|
---|
33 | exports.readFile = readFile;
|
---|
34 |
|
---|
35 | const stat = _gensync()({
|
---|
36 | sync: _fs().statSync,
|
---|
37 | errback: _fs().stat
|
---|
38 | });
|
---|
39 |
|
---|
40 | exports.stat = stat; |
---|
Note:
See
TracBrowser
for help on using the repository browser.