194 breaking releases

new 0.197.0 Mar 28, 2025
0.195.0 Mar 14, 2025
0.184.0 Dec 19, 2024
0.180.0 Nov 28, 2024
0.2.0 Mar 21, 2021

#195 in Programming languages

Download history 4804/week @ 2024-12-08 4855/week @ 2024-12-15 1984/week @ 2024-12-22 1965/week @ 2024-12-29 4456/week @ 2025-01-05 5206/week @ 2025-01-12 5382/week @ 2025-01-19 5579/week @ 2025-01-26 5163/week @ 2025-02-02 5280/week @ 2025-02-09 5106/week @ 2025-02-16 6485/week @ 2025-02-23 6003/week @ 2025-03-02 4185/week @ 2025-03-09 5462/week @ 2025-03-16 4116/week @ 2025-03-23

20,202 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