indent-string.js 247 B

1234567
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.indentString = void 0;
  4. function indentString(string, count) {
  5. return string.replace(/^(?!\s*$)/gm, ' '.repeat(count));
  6. }
  7. exports.indentString = indentString;