3 ms·
I improved this (by porting it to the dialog.showModal() API, relevant to this post) and shipped it to NPM as a package called prompts-js. Code here: https://g
by simonw 2y ago
I improved this (by porting it to the dialog.showModal() API, relevant to this post) and shipped it to NPM as a package called prompts-js.
Code here: https://github.com/simonw/prompts-js https://github.com/simonw/prompts-js
Blog writeup: https://simonwillison.net/2024/Dec/7/prompts-js/ https://simonwillison.net/2024/Dec/7/prompts-js/