a zip code crypto-currency system good for red ONLY

NodeOutputFileSystem.js 503B

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