201 breaking releases

new 0.204.0 Apr 30, 2025
0.202.0 Apr 18, 2025
0.197.0 Mar 28, 2025
0.184.0 Dec 19, 2024
0.2.0 Mar 21, 2021

#1826 in HTTP server

Download history 5098/week @ 2025-01-08 5388/week @ 2025-01-15 5439/week @ 2025-01-22 5150/week @ 2025-01-29 4842/week @ 2025-02-05 5876/week @ 2025-02-12 5417/week @ 2025-02-19 6430/week @ 2025-02-26 5256/week @ 2025-03-05 4570/week @ 2025-03-12 5676/week @ 2025-03-19 4557/week @ 2025-03-26 4588/week @ 2025-04-02 4434/week @ 2025-04-09 4779/week @ 2025-04-16 3820/week @ 2025-04-23

18,853 downloads per month
Used in 63 crates (25 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_ops_and_esm() in the extensions field of your RuntimeOptions

Provided ops

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

  • op_preview_entries

Dependencies

~93MB
~2M SLoC