Hacker News new | ask | show | jobs
A zero dependency deterministic placeholder text generator in TypeScript (github.com)
3 points by lokicik 212 days ago
1 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.