1 | /*
|
2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
3 | Author Tobias Koppers @sokra
|
4 | */
|
5 | ;
|
6 |
|
7 | const fs = require("fs");
|
8 | const path = require("path");
|
9 | const mkdirp = require("mkdirp");
|
10 |
|
11 | class NodeOutputFileSystem {
|
12 | constructor() {
|
13 | this.mkdirp = mkdirp;
|
14 | this.mkdir = fs.mkdir.bind(fs);
|
15 | this.rmdir = fs.rmdir.bind(fs);
|
16 | this.unlink = fs.unlink.bind(fs);
|
17 | this.writeFile = fs.writeFile.bind(fs);
|
18 | this.join = path.join.bind(path);
|
19 | }
|
20 | }
|
21 |
|
22 | module.exports = NodeOutputFileSystem;
|