The big difference is that it comes preinstalled. If you had a whole company on MacBooks but not all of them had Node installed, and you wanted to distribute a script written in JavaScript, this could be handy
Fairly niche, but not useless
I could also imagine some sort of Electron-alternative using the builtin JS interpreter for system stuff alongside the builtin webview for the UI
> The big difference is that it comes preinstalled. If you had a whole company on MacBooks but not all of them had Node installed, and you wanted to distribute a script written in JavaScript, this could be handy
Except when Apple decides to remove it from the default setup.
My understanding is that macOS doesn't ship those runtimes anymore.
Re:Jsc: My New Best Friend
by zimpenfish on Thursday August 26, 2021 @02:50AM
(#28311471)
They're all still in the current Monterey beta (21A5294g) but python2 says (paraphrasing) "this is only for compatibility; it might not be here in future"
It wasn't in the above list, but Apple did completely remove PHP in Monterey.
It's not like it's the only scripting language available either, OSX comes with ruby, python2, python3 and perl by default.