Get MD5 hash using Bubble

there is always this:

const [body, status] = context.async(async (cb) => {
  try {
    const { default: fetch } = await import("node-fetch");
    const response = await fetch("https://github.com/");
    const body = await response.text();
    cb(null, [body, response.status]);
  } catch (e) {
    cb(e);
  }
});

return { body, status };

with this package.json:

{
  "dependencies": {
    "node-fetch": "3.3.0"
  }
}
2 Likes