201 breaking releases

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

#187 in Programming languages

Download history 5373/week @ 2025-01-15 5412/week @ 2025-01-22 5167/week @ 2025-01-29 4865/week @ 2025-02-05 5863/week @ 2025-02-12 5409/week @ 2025-02-19 6411/week @ 2025-02-26 5245/week @ 2025-03-05 4564/week @ 2025-03-12 5637/week @ 2025-03-19 4517/week @ 2025-03-26 4548/week @ 2025-04-02 4413/week @ 2025-04-09 4780/week @ 2025-04-16 4426/week @ 2025-04-23 3402/week @ 2025-04-30

17,729 downloads per month
Used in 68 crates (25 directly)

MIT license

51KB
1.5K SLoC

JavaScript 1.5K SLoC // 0.0% comments TypeScript 395 SLoC // 0.3% comments Rust 1 SLoC

deno_webidl

This crate implements WebIDL for Deno. It consists of infrastructure to do ECMA -> WebIDL conversions.

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

Usage Example

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

import * as webidl from "ext:deno_webidl/00_webidl.js";
Object.defineProperty(globalThis, webidl.brand, {
  value: webidl.brand,
  enumerable: false,
  configurable: true,
  writable: true,
});

Then from rust, provide init_webidl::init_webidl::init_ops_and_esm() in the extensions field of your RuntimeOptions

Dependencies

~94MB
~2M SLoC