BairdyB
Denoβ€’3y agoβ€’
21 replies
Bairdy

Remove std/node, it was merged into Deno itself (#3206)

This used to work, but now it doesn't. Where do you show examples of where this was moved to and how to use it from now on?

import { inflate } from "https://deno.land/std/node/zlib.ts";
import { Buffer } from "https://deno.land/std/node/buffer.ts";

const input = "789cb3b1d10fa92c48d5f72bcd4d4a2d72cb2fca4d2cd10fd5482e55482bd1d4775630d477016237178592a2d254fde0600d4d3b3b00bae60fb4";
const buffer = Buffer.from(input, "hex");

inflate(buffer, (err, result) => {
  if (err) {
    console.error(err);
    return;
  }
  console.log(result.toString());
});
Was this page helpful?