nbb

mkvlr 2022-10-21T11:41:10.305009Z

nbb.core/slurp doens't accept urls, right?

borkdude 2022-10-21T11:42:46.306139Z

currently not, but the idea was to use fetch whenever it becomes available in node. can take a while

mkvlr 2022-10-21T11:48:39.364279Z

holy shit the node http api is bad, need a different api call for https, wtf?

😆 1
Dimitar Uzunov 2022-10-21T13:58:58.379809Z

hahaha this was my reaction as well

mkvlr 2022-10-21T11:50:34.810519Z

and I need to chunk together the string?

borkdude 2022-10-21T11:51:48.007579Z

@mkvlr use https://www.npmjs.com/package/node-fetch

👍 1
👍🏼 1
borkdude 2022-10-21T11:52:23.805119Z

then once it becomes part of Node (which it already is behind a flag) you can remove the dep

borkdude 2022-10-21T11:54:12.615399Z

Historically the Node APIs are event based but in recent years things have become more and more promise-based