@ibyar/cli
Version:
The Ibyar/Aurora CLI tool
43 lines • 910 B
JavaScript
class ModuleManger {
[Symbol.iterator]() {
return this.map[Symbol.iterator]();
}
[Symbol.toStringTag] = 'Module Info';
get size() {
return this.map.size;
}
map = new Map();
add(info) {
this.map.set(info.path, info);
}
clear() {
this.map.clear();
}
delete(key) {
return this.map.delete(key);
}
forEach(callbackfn, thisArg) {
this.map.forEach(callbackfn, thisArg);
}
get(key) {
return this.map.get(key);
}
has(key) {
return this.map.has(key);
}
set(key, value) {
this.map.set(key, value);
return this;
}
entries() {
return this.map.entries();
}
keys() {
return this.map.keys();
}
values() {
return this.map.values();
}
}
export const moduleManger = new ModuleManger();
//# sourceMappingURL=modules.js.map