199 breaking releases

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

#150 in Programming languages

Download history 1959/week @ 2024-12-27 3241/week @ 2025-01-03 5426/week @ 2025-01-10 5594/week @ 2025-01-17 5540/week @ 2025-01-24 4790/week @ 2025-01-31 5308/week @ 2025-02-07 5510/week @ 2025-02-14 6181/week @ 2025-02-21 6267/week @ 2025-02-28 4104/week @ 2025-03-07 5067/week @ 2025-03-14 5306/week @ 2025-03-21 4639/week @ 2025-03-28 4480/week @ 2025-04-04 4321/week @ 2025-04-11

19,521 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

~93MB
~2M SLoC