mirror of
https://github.com/marcrobledo/RomPatcher.js.git
synced 2025-06-27 16:25:54 +00:00
12 lines
No EOL
281 B
JavaScript
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);
|
|
} |