TypeScript Clone with modification for Unix