1
0
Fork 0
mirror of https://github.com/marcrobledo/RomPatcher.js.git synced 2025-06-27 16:25:54 +00:00
RomPatcher.js/js/File.js
2023-06-29 11:29:54 -06:00

12 lines
No EOL
281 B
JavaScript

const path = require('path');
const fs = require("fs");
exports.File = File;
function File(_path) {
this.stat = fs.statSync(_path);
this.size = this.stat.size;
this.name = path.basename(_path);
this.type = this.stat.type;
this.data = fs.readFileSync(_path);
}