UNPKG

airship-server

Version:

Airship is a framework for Node.JS & TypeScript that helps you to write big, scalable and maintainable API servers.

19 lines (15 loc) 399 B
export default class CodeLine { private _data: string constructor(data: string, tab: number = 0) { this._data = this.genTab(tab) + data } get data(): string { return this._data } public tab(n: number) { this._data = this.genTab(n) + this._data } private genTab(n: number): string { return new Array(n).fill(' ').join('') } }