sindresorhus / alfy

Create Alfred workflows with ease
MIT License
2.63k stars 104 forks source link

Usage with bun? #158

Open MartinMalinda opened 2 years ago

MartinMalinda commented 2 years ago

First of all, I'm loving Alfy so far ❤️

So there's this new awesome new runtime Bun: https://github.com/Jarred-Sumner/bun. And I'm thinking that Alfred workflows would be really nice to run in it - fast boot will make the UX even nicer and Bun also has some nice shortcuts to work with files, requests and so on.

So I'm wondering if there's a way to make that work? Could the node workflow be reused somehow?

LitoMore commented 2 years ago

You could specify the interpreter in the Script Filter directly.

But as I know current Bun does not fully support the Node.js things. See https://github.com/oven-sh/bun/issues/159.