Skip to main content
100%

lorem-ipsum scriptkit

✓ Published0🌍 Public
Aabernier
Last edited Sep 18, 2023
Created on Sep 17, 2023

This example generates lorem ipsum text on demand through a Script Kit prompt. Users choose the unit type—paragraphs, sentences, or words—and optionally format the output as HTML or copy it to the clipboard. The code uses the `lorem-ipsum` npm package and Script Kit’s `arg`, `flag`, `copy`, and `setSelectedText` APIs. A live preview updates as the user types a count.

AI-generated description

Generate N paragraphs | sentences | words of lorem-ipsum text:

<img width="880" alt="image" src="https://user-images.githubusercontent.com/76580/268502309-d00b93f6-fc4b-4144-b394-856cbacc13b7.png">

It supports --format html and --copy flags with <kbd>→</kbd>.

Similar vizzes