amis-rpc-design/node_modules/ansi-fragments/build/fragments/Pad.js

17 lines
415 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function pad(count, separator) {
return new Pad(count, separator);
}
exports.pad = pad;
class Pad {
constructor(count, separator = ' ') {
this.count = count;
this.separator = separator;
}
build() {
return this.separator.repeat(this.count);
}
}
exports.Pad = Pad;
//# sourceMappingURL=Pad.js.map