mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-10-05 23:15:12 +01:00
22 lines
291 B
JavaScript
22 lines
291 B
JavaScript
|
(function() {
|
||
|
|
||
|
var FS = require('fs');
|
||
|
|
||
|
function Sheet() {
|
||
|
|
||
|
this.id = null;
|
||
|
this.title = "";
|
||
|
this.sheets = [];
|
||
|
this.rep = { };
|
||
|
|
||
|
}
|
||
|
|
||
|
Sheet.prototype.open = function( file ) {
|
||
|
this.rep = JSON.parse( FS.readFileSync( file, 'utf8' ) );
|
||
|
return this;
|
||
|
};
|
||
|
|
||
|
module.exports = Sheet;
|
||
|
|
||
|
}());
|