babashka

borkdude 2026-06-26T06:32:06.105169Z

Yes you can use from squint but also directly from JS without any compilation

borkdude 2026-06-26T06:32:27.677949Z

Since it's available on NPM now

borkdude 2026-06-26T09:54:00.494169Z

I'm not sure if it's a good idea but I started playing around with porting babashka.fs to Node.js (CLJS + Squint). Sometimes I need some file operations in Node and I don't want to read the Node.js docs to do it since I don't use it that often... A similar problem I have with bash ;)

😂 1
borkdude 2026-06-26T09:55:22.996879Z

One caveat is that all of these functions will use Node's Sync variants since babashka.fs on the JVM is synchronous

borkdude 2026-06-26T09:56:18.526819Z

But for the things I build with it (squint's I/O when doing compilation for example) that would be fine

Gregory Bleiker 2026-06-26T14:50:28.929449Z

supporting js engine stuff is always a good idea 🙂 this is for nbb, correkt?

borkdude 2026-06-26T14:51:59.169059Z

not just for nbb, but yes, I could include it in nbb

👍 1
2026-06-26T16:33:41.264229Z

Oh wow

borkdude 2026-06-26T19:43:11.383379Z

For Windows users in this channel, is openssl usually on your system's PATH? What does (babashka.fs/which "openssl") return?

seancorfield 2026-06-26T20:31:41.083969Z

For Me: cmd:

C:\Users\seanc>openssl
'openssl' is not recognized as an internal or external command,
operable program or batch file.
and using bb per your question returns nil. Similarly on Powershell.

borkdude 2026-06-26T21:00:38.322139Z

Do you have Git bash on Windows?

seancorfield 2026-06-26T21:01:03.290829Z

No, I've always hated git bash 😞

borkdude 2026-06-26T21:01:49.179529Z

ok fine. I read somewhere that git bash includes openssl on the path. how hard it is to install it from scratch? would be useful to know since we're giving a workshop at the conj and we need to shell out to openssl :)

seancorfield 2026-06-26T21:04:06.426549Z

I honestly thought MS had started including openssl as standard but maybe that's only on new installs of Windows? My original install is from years ago and I've just been upgrading all the time...

seancorfield 2026-06-26T21:04:55.500659Z

winget install openssl should be all you need (at least on a modern Windows system)

borkdude 2026-06-26T21:05:08.391649Z

did you test it?

seancorfield 2026-06-26T21:07:29.528509Z

Well... it installs it... somewhere... but doesn't put it on the PATH...

seancorfield 2026-06-26T21:09:23.912829Z

The docs around that winget command indicate it should add it to the System Path automatically but it didn't seem to... (but I'm not very familiar with Windows so I may be holding it wrong).

borkdude 2026-06-26T21:09:40.765329Z

perhaps you need to restart your shell (or system... )?

seancorfield 2026-06-26T21:12:22.860409Z

Ah, it does not update PATH. It installs to C:\Program Files\OpenSSL-Win64\bin and then you have to add that to your PATH var...

borkdude 2026-06-26T21:12:44.604149Z

thanks for the info

seancorfield 2026-06-26T21:14:41.079219Z

Yup, confirmed that works: • run winget install openssl • use control panel to edit environment variables • under System select Path and Edit... • add New... with C:\Program Files\OpenSSL-Win64\bin • start a new cmd or Powershell window • openssl works!

seancorfield 2026-06-26T21:15:03.398199Z

C:\Users\seanc>bb
Babashka v1.12.218
Type :repl/help for help
user=> (require 'babashka.fs)
nil
user=> (babashka.fs/which "openssl")
#object[sun.nio.fs.WindowsPath 0x183bfadf "C:\\Program Files\\OpenSSL-Win64\\bin\\openssl.exe"]
user=>

borkdude 2026-06-26T21:15:31.447919Z

👍

Gent Krasniqi 2026-06-29T15:59:30.550129Z

If you need another data point, I also don't have openssl in my path even though I have Git Bash.

borkdude 2026-06-29T16:00:30.212079Z

did you check inside git bash?

borkdude 2026-06-29T16:00:44.779709Z

and can you try Sean's instructions to see if that works properly for you?

Gent Krasniqi 2026-06-29T16:00:52.945629Z

there I do have it, yes

borkdude 2026-06-29T16:01:06.870029Z

yeah ok