Skip to content

A zero dependency deterministic placeholder text generator in TypeScript

github.com/lokicik
3 pointslokicik1 comment
On HN

Comments

I built a small utility library for generating placeholder text from custom corpora. It has no dependencies, works in both Node and the browser, and supports deterministic output through seeding, which is useful for tests and reproducible fixtures.

GitHub: https://github.com/lokicik/placetext

npm: https://www.npmjs.com/package/placetext

Main features:

• zero dependencies

• corpus based text generation (multiple built in corpora)

• deterministic mode for consistent test output

• TypeScript implementation

• ESM and CommonJS builds

• small footprint

Happy to answer questions or hear suggestions.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.