excel4node
Version:
Library to create Formatted Excel Files.
26 lines (21 loc) • 463 B
JavaScript
const fs = require('fs');
class MediaCollection {
constructor() {
this.items = [];
}
add(item) {
if (typeof item === 'string') {
fs.accessSync(item, fs.R_OK);
}
this.items.push(item);
return this.items.length;
}
get isEmpty() {
if (this.items.length === 0) {
return true;
} else {
return false;
}
}
}
module.exports = MediaCollection;