Converted Programs and DarkWeb implementations to Typescript

This commit is contained in:
danielyxie
2018-12-25 02:14:18 -08:00
parent a9bd883395
commit ab138ea477
18 changed files with 2905 additions and 2645 deletions
+18
View File
@@ -0,0 +1,18 @@
import { formatNumber } from "../../utils/StringHelperFunctions";
export class DarkWebItem {
program: string;
price: number;
description: string;
constructor(program: string, price: number, description: string) {
this.program = program;
this.price = price;
this.description = description;
}
// Formats the item to print out to terminal (e.g. BruteSSH.exe -$500,000 - Opens up SSH Ports)
toString(): string {
return [this.program, "$" + formatNumber(this.price, 0), this.description].join(' - ');
}
}