190 breaking releases

new 0.193.0 Feb 25, 2025
0.191.0 Feb 18, 2025
0.184.0 Dec 19, 2024
0.180.0 Nov 28, 2024
0.2.0 Mar 21, 2021

#268 in Programming languages

Download history 4105/week @ 2024-10-31 4155/week @ 2024-11-07 3855/week @ 2024-11-14 4824/week @ 2024-11-21 4373/week @ 2024-11-28 4758/week @ 2024-12-05 5380/week @ 2024-12-12 2745/week @ 2024-12-19 1842/week @ 2024-12-26 3009/week @ 2025-01-02 4960/week @ 2025-01-09 5803/week @ 2025-01-16 5485/week @ 2025-01-23 4592/week @ 2025-01-30 5236/week @ 2025-02-06 3944/week @ 2025-02-13

20,334 downloads per month
Used in 66 crates (24 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

~91MB
~2M SLoC