unjs/knitwork

🧶 Utilities to generate safe JavaScript code.

57
/ 100
Established

This tool helps JavaScript and TypeScript developers programmatically construct and manipulate code. You provide it with building blocks like import paths, variable names, and object structures, and it outputs correctly formatted and safe JavaScript or TypeScript code strings. It's designed for developers who need to generate code within their own applications, such as for build tools or code generators.

315 stars. Available on npm.

Use this if you are a JavaScript or TypeScript developer building tools that need to dynamically create or modify JavaScript or TypeScript code.

Not ideal if you are an end-user looking for a visual code editor or a simple script runner.

JavaScript-development TypeScript-development code-generation developer-tools build-automation
No Dependents
Maintenance 10 / 25
Adoption 10 / 25
Maturity 25 / 25
Community 12 / 25

How are scores calculated?

Stars

315

Forks

17

Language

TypeScript

License

MIT

Last pushed

Mar 12, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/unjs/knitwork"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.