|
|
|
|
|
by LordDragonfang
1022 days ago
|
|
>You can call JS in Bun, but you cannot call Bun APIs in JS This is confusingly worded, and I didn't understand what you were trying to say before I watched the video announcement. "Bun" is a runtime, "JS" is a language that's implemented by multiple runtimes (including Bun, npm, and browsers). It makes no sense to say "you can't call the Bun APIs in JS" because calling them in JS is the only way to do it in the first place. What you seem to mean is "you can't call Bun APIs from other runtimes" which is... kind of obvious? And also kind of an empty complaint, since Bun is primarily an npm replacement, and npm does the same thing[1] [1] https://nodejs.org/api/fs.html |
|