lorem-ipsum
Version:
Generates passages of lorem ipsum text suitable for use as placeholder copy in web pages, graphics, and more. Works in the browser, NodeJS, and React Native.
16 lines (15 loc) • 601 B
TypeScript
import { LoremFormat } from "../constants/formats";
import Generator, { IGeneratorOptions } from "../lib/generator";
declare class LoremIpsum {
format: LoremFormat;
suffix?: string | undefined;
generator: Generator;
constructor(options?: IGeneratorOptions, format?: LoremFormat, suffix?: string | undefined);
getLineEnding(): string;
formatString(str: string): string;
formatStrings(strings: string[]): string[];
generateWords(num?: number): string;
generateSentences(num?: number): string;
generateParagraphs(num: number): string;
}
export default LoremIpsum;