202 breaking releases

new 0.205.0 May 15, 2025
0.203.0 Apr 24, 2025
0.197.0 Mar 28, 2025
0.184.0 Dec 19, 2024
0.2.0 Mar 21, 2021

#1712 in HTTP server

Download history 4568/week @ 2025-01-30 5237/week @ 2025-02-06 5662/week @ 2025-02-13 6103/week @ 2025-02-20 5964/week @ 2025-02-27 4832/week @ 2025-03-06 5042/week @ 2025-03-13 5382/week @ 2025-03-20 4700/week @ 2025-03-27 4385/week @ 2025-04-03 4608/week @ 2025-04-10 4920/week @ 2025-04-17 4206/week @ 2025-04-24 3356/week @ 2025-05-01 3533/week @ 2025-05-08 2816/week @ 2025-05-15

14,898 downloads per month
Used in 64 crates (26 directly)

MIT license

110KB
3K SLoC

JavaScript 3K SLoC // 0.1% comments Rust 26 SLoC TypeScript 9 SLoC // 0.2% comments

deno_console

This crate implements the Console API.

Spec: https://console.spec.whatwg.org/

Usage Example

From javascript, include the extension's source, and assign a console to the global scope:

import * as console from "ext:deno_console/01_console.js";
Object.defineProperty(globalThis, "console", {
  value: new console.Console((msg, level) =>
    globalThis.Deno.core.print(msg, level > 1)
  ),
  enumerable: false,
  configurable: true,
  writable: true,
});

Then from rust, provide deno_console::deno_console::init() in the extensions field of your RuntimeOptions

Provided ops

Following ops are provided, which can be accessed through Deno.ops:

  • op_preview_entries

Dependencies

~94MB
~2M SLoC